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(cmd): Add -y for answer yes to all questions #45

Merged
merged 1 commit into from
Mar 21, 2023

Conversation

matevz
Copy link
Member

@matevz matevz commented Mar 20, 2023

Implements #13

@@ -41,7 +41,7 @@ func LoadAccount(cfg *config.Config, name string) wallet.Account {
cobra.CheckErr(err)

var passphrase string
if af.RequiresPassphrase() {
if af.RequiresPassphrase() && !txYes {
Copy link
Member

Choose a reason for hiding this comment

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

How will this work if txYes is true? Passphrase will always be empty?

Copy link
Member Author

@matevz matevz Mar 20, 2023

Choose a reason for hiding this comment

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

Yeah, it will just pass empty string for password, so you can't unlock password-encrypted accounts in non-interactive mode currently.

@matevz matevz merged commit 918ffdd into master Mar 21, 2023
@matevz matevz deleted the matevz/yes-to-all branch March 21, 2023 14:03
@matevz matevz mentioned this pull request Mar 29, 2023
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.

None yet

2 participants