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/cli: added mnemonic gen from console only #983

Merged
merged 5 commits into from
Aug 4, 2023

Conversation

kwek20
Copy link
Contributor

@kwek20 kwek20 commented Aug 1, 2023

Description of change

Allows getting mnemonic through just command line args

Links to any relevant issues

fixes #652

Type of change

  • Enhancement (a non-breaking change which adds functionality)

How the change has been tested

Test cases:

  • ./wallet mnemonic --output-stdout no -> Write to default file DO WE WANT THIS OR BACK TO USER CHOICE
  • ./wallet mnemonic --output-stdout yes -> Write to console
  • ./wallet mnemonic --output-stdout -> Write to console
  • ./wallet mnemonic --output-file-name filename.txt -> Writes to file
  • ./wallet mnemonic --output-file-name filename.txt --output-stdout -> Writes to file and console
  • ./wallet mnemonic -> Prompts user

@thibault-martinez
Copy link
Member

Not 2.0?

@kwek20
Copy link
Contributor Author

kwek20 commented Aug 1, 2023

oh :D
didnt even realize

@kwek20 kwek20 force-pushed the feat/cli/mnemonic-no-interact branch from b67d130 to 6ef9bb3 Compare August 1, 2023 12:37
@kwek20 kwek20 changed the base branch from 2.0 to develop August 1, 2023 12:37
@kwek20 kwek20 changed the base branch from develop to 1.1 August 1, 2023 12:38
@kwek20 kwek20 force-pushed the feat/cli/mnemonic-no-interact branch from 6ef9bb3 to 301f39f Compare August 1, 2023 12:42
@DaughterOfMars DaughterOfMars linked an issue Aug 1, 2023 that may be closed by this pull request
cli/src/helper.rs Outdated Show resolved Hide resolved
Copy link
Member

@thibault-martinez thibault-martinez left a comment

Choose a reason for hiding this comment

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

Changelog

Thoralf-M
Thoralf-M previously approved these changes Aug 2, 2023
Copy link
Member

@Thoralf-M Thoralf-M left a comment

Choose a reason for hiding this comment

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

I'm fine with this, will also approve again if you change the match to (None, Some(false))

@Thoralf-M Thoralf-M merged commit b8a06c4 into iotaledger:1.1 Aug 4, 2023
2 of 7 checks passed
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 : generate mnemonic without interactive mode
4 participants