-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cli/uninstall): Add uninstall command #12209
Conversation
got the formatter to work by adding ""projectType": "openSource", in |
Make sure your git submodules are up to date:
No, the problem should be fixes once git submodules are up to date. |
cli/flags.rs
Outdated
@@ -1896,6 +1936,20 @@ fn install_parse(flags: &mut Flags, matches: &clap::ArgMatches) { | |||
}); | |||
} | |||
|
|||
fn uninstall_parse(flags: &mut Flags, matches: &clap::ArgMatches) { | |||
runtime_args_parse(flags, matches, true, true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
runtime_args_parse(flags, matches, true, true); |
No need for runtime args parsing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks @sylc! We will merge this once the 1.15 merge window opens.
// ensure directory exists | ||
if let Ok(metadata) = fs::metadata(&installation_dir) { | ||
if !metadata.is_dir() { | ||
return Err(generic_error("Installation path is not a directory")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another minor point: It might be useful to the user to include the resolved installation_dir path in this error message.
4954798
to
c1a8a17
Compare
Fix #3139