Accept package names in the tool API (#4737)

## Summary

It seems helpful that these _not_ accept arbitrary strings.
This commit is contained in:
Charlie Marsh
2024-07-02 15:30:40 -04:00
committed by GitHub
parent c8987269ff
commit 21187e1f36
5 changed files with 33 additions and 24 deletions
+2 -1
View File
@@ -2014,7 +2014,8 @@ pub struct ToolListArgs;
#[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct ToolUninstallArgs {
pub name: String,
/// The name of the tool to uninstall.
pub name: PackageName,
}
#[derive(Args)]