-
Notifications
You must be signed in to change notification settings - Fork 646
Spacetime identity remove force flag #22
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
Conversation
| std::io::stdout().flush()?; | ||
| std::io::stdin().read_line(&mut input)?; | ||
|
|
||
| if input.trim() != "y" { |
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.
Consider https://crates.io/crates/yn or something like that.
| .required_unless_present("identity"), | ||
| ).arg( | ||
| Arg::new("force") | ||
| .long("force") |
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.
Should this have .short("f")? Or whatever the incantation is to allow spacetime identity remove --all -f?
| .action(ArgAction::SetTrue) | ||
| .requires("all") | ||
| .conflicts_with("identity") | ||
| .required_unless_present("identity"), |
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.
Is this correct? I would think we want to allow --all without --force. I guess I'm not super sure on how this argparse library works, but I think that we want all of these invocations to be acceptable:
spacetime identity remove SOME_IDENTITYspacetime identity remove --allspacetime identity remove --all --force
Co-authored-by: Boppy <[email protected]>
Co-authored-by: Boppy <[email protected]>
* Add license.text * Fix case on file name --------- Co-authored-by: Derek Brinkmann <[email protected]>
Co-authored-by: Derek Brinkmann <[email protected]>
* Add license.text * Fix case on file name --------- Co-authored-by: Derek Brinkmann <[email protected]>
Co-authored-by: Derek Brinkmann <[email protected]>
Description of Changes
spacetime identity removecommand so it can more easily be used in CIAPI
If the API is breaking, please state below what will break