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

Introduce auto_confirmed option for 'maintenance uninstall' task #165

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

tduccuong
Copy link

@tduccuong tduccuong commented Dec 25, 2024

Usecase:

In some scenario, there is a need to override the cached build with a new build of the same version, without user having to type y when prompted. For example, re-deploy a build in a local test/prod env. This makes scripting easy.

Comment on lines 15 to 16
const confirmed = args.len >= 2 and std.mem.eql(u8, args[1], "confirmed");
try do_uninstall(install_dir, confirmed);
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a nitpick, but I would prefer this be called the inverse: -no-confirm or something like that.

Copy link
Author

Choose a reason for hiding this comment

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

i changed the option to --no-confirm :)

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.

2 participants