Skip to content
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

Merged
merged 9 commits into from Sep 30, 2021
Merged

Conversation

sylc
Copy link
Contributor

@sylc sylc commented Sep 24, 2021

Fix #3139

@sylc
Copy link
Contributor Author

sylc commented Sep 24, 2021

I can't find any instruction in the contributing guide on how to run the tests locally.
Also the format is failing with
image

🤔 Any ideas ?

cli/flags.rs Outdated Show resolved Hide resolved
@sylc
Copy link
Contributor Author

sylc commented Sep 24, 2021

got the formatter to work by adding ""projectType": "openSource", in .dprint.json.
Should this be committed ?

@bartlomieju
Copy link
Member

I can't find any instruction in the contributing guide on how to run the tests locally.

Make sure your git submodules are up to date: git submodule update --init --recursive

Should this be committed ?

No, the problem should be fixes once git submodules are up to date.

@bartlomieju bartlomieju added this to the 1.15.0 milestone Sep 24, 2021
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);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
runtime_args_parse(flags, matches, true, true);

No need for runtime args parsing

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

Copy link
Member

@dsherret dsherret left a 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"));
Copy link
Member

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.

@dsherret dsherret merged commit ee2e25f into denoland:main Sep 30, 2021
@sylc sylc deleted the scau_uninstall branch October 3, 2021 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

deno remove/uninstall subcommand
4 participants