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

[CLI] Ask for confirmation before creating shared recovery. #9370

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AureliaDolo
Copy link
Contributor

Fix #9125

@AureliaDolo AureliaDolo marked this pull request as ready for review January 17, 2025 15:45
@AureliaDolo AureliaDolo requested a review from a team as a code owner January 17, 2025 15:45
@AureliaDolo AureliaDolo force-pushed the aurelia/cli/confirm_shamir_creation branch from 523e361 to 14157ce Compare January 17, 2025 15:46
Copy link
Contributor

@vxgmichel vxgmichel left a comment

Choose a reason for hiding this comment

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

Couple of comments, LGTM otherwise 👍

..
} = args;
dbg!(no_confirmation);
Copy link
Contributor

Choose a reason for hiding this comment

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

debug artefact?

.find(|x| x.id == *recipient)
.expect("missing recipient")
.human_handle;
format!("{BULLET_CHAR} User {user} will have {share} share(s)") // TODO: special case if there is only one share
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe treat this now since it's simple enough?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's in quite a few other places too.

@AureliaDolo AureliaDolo force-pushed the aurelia/cli/confirm_shamir_creation branch from 14157ce to a748596 Compare January 17, 2025 16:06
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.

[CLI] shared recovery create: prompt to confirm
2 participants