Skip to content

Conversation

@jdetter
Copy link
Collaborator

@jdetter jdetter commented Jun 26, 2023

Description of Changes

  • This adds a simple force flag to the spacetime identity remove command so it can more easily be used in CI

API

  • This is a breaking change to the module API
  • This is a breaking change to the ClientAPI

If the API is breaking, please state below what will break

@jdetter jdetter requested a review from gefjon June 26, 2023 17:54
std::io::stdout().flush()?;
std::io::stdin().read_line(&mut input)?;

if input.trim() != "y" {
Copy link
Contributor

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.

@jdetter jdetter enabled auto-merge (squash) June 26, 2023 18:09
.required_unless_present("identity"),
).arg(
Arg::new("force")
.long("force")
Copy link
Contributor

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"),
Copy link
Contributor

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_IDENTITY
  • spacetime identity remove --all
  • spacetime identity remove --all --force

@jdetter jdetter merged commit 13040aa into master Jun 26, 2023
cloutiertyler pushed a commit that referenced this pull request Aug 1, 2023
cloutiertyler pushed a commit that referenced this pull request Aug 1, 2023
@cloutiertyler cloutiertyler deleted the jdetter/add-remove-force-flag branch August 1, 2023 21:54
bfops pushed a commit that referenced this pull request Jul 16, 2025
* Add license.text

* Fix case on file name

---------

Co-authored-by: Derek Brinkmann <[email protected]>
bfops pushed a commit that referenced this pull request Jul 17, 2025
bfops pushed a commit that referenced this pull request Jul 17, 2025
Co-authored-by: Derek Brinkmann <[email protected]>
bfops pushed a commit that referenced this pull request Aug 7, 2025
* Add license.text

* Fix case on file name

---------

Co-authored-by: Derek Brinkmann <[email protected]>
bfops pushed a commit that referenced this pull request Aug 7, 2025
Co-authored-by: Derek Brinkmann <[email protected]>
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.

4 participants