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

refactor: move --generate-key to a generate-key subcommand #637

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

richard-ramos
Copy link
Member

Description

Moves the logic to generate a key file to its own subcommand, instead of using a flag.
To generate a nodekey file, you can execute the following command:

./build/waku generate-key --key-password=.....

@status-im-auto
Copy link

status-im-auto commented Aug 9, 2023

Jenkins Builds

Click to see older builds (17)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ c88413f #1 2023-08-09 18:19:37 ~1 min linux 📦deb
✔️ c88413f #1 2023-08-09 18:20:25 ~1 min nix-flake 📄log
✔️ c88413f #1 2023-08-09 18:21:08 ~2 min tests 📄log
✔️ c88413f #1 2023-08-09 18:21:21 ~2 min tests 📄log
✔️ c88413f #1 2023-08-09 18:22:14 ~3 min android 📦tgz
✔️ c88413f #1 2023-08-09 18:23:37 ~5 min ios 📦tgz
✖️ ed141c6 #2 2023-08-09 18:20:50 ~12 sec nix-flake 📄log
ed141c6 #2 2023-08-09 18:20:53 ~15 sec linux 📄log
✖️ ed141c6 #2 2023-08-09 18:21:46 ~20 sec tests 📄log
✖️ ed141c6 #2 2023-08-09 18:22:42 ~1 min tests 📄log
✔️ ed141c6 #2 2023-08-09 18:24:21 ~3 min ios 📦tgz
✔️ 4a680b4 #3 2023-08-09 18:23:36 ~1 min linux 📦deb
✔️ 4a680b4 #3 2023-08-09 18:24:03 ~1 min tests 📄log
✔️ 4a680b4 #3 2023-08-09 18:24:15 ~1 min nix-flake 📄log
✔️ 4a680b4 #3 2023-08-09 18:24:21 ~1 min tests 📄log
✔️ 4a680b4 #2 2023-08-09 18:25:11 ~2 min android 📦tgz
✔️ 4a680b4 #3 2023-08-09 18:27:24 ~5 min ios 📦tgz
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ dbc541c #4 2023-08-09 18:26:21 ~29 sec linux 📦deb
✔️ dbc541c #4 2023-08-09 18:27:35 ~1 min tests 📄log
✔️ dbc541c #4 2023-08-09 18:27:43 ~1 min nix-flake 📄log
✔️ dbc541c #4 2023-08-09 18:28:30 ~2 min tests 📄log
✔️ dbc541c #3 2023-08-09 18:28:46 ~2 min android 📦tgz
✔️ dbc541c #4 2023-08-09 18:30:23 ~4 min ios 📦tgz
✔️ e0eed78 #5 2023-08-10 12:59:02 ~1 min linux 📦deb
✔️ e0eed78 #5 2023-08-10 12:59:40 ~1 min nix-flake 📄log
✔️ e0eed78 #5 2023-08-10 13:01:55 ~4 min tests 📄log
✔️ e0eed78 #4 2023-08-10 13:01:58 ~4 min android 📦tgz
✔️ e0eed78 #5 2023-08-10 13:02:19 ~4 min tests 📄log
✔️ e0eed78 #5 2023-08-10 13:02:20 ~4 min ios 📦tgz

@richard-ramos richard-ramos force-pushed the refactor_key_file branch 3 times, most recently from 4a680b4 to dbc541c Compare August 9, 2023 18:25
Overwrite = altsrc.NewBoolFlag(&cli.BoolFlag{
Name: "overwrite",
Usage: "Overwrite the nodekey file if it already exists",
Destination: &Options.Overwrite,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe set default to false.

@chaitanyaprem
Copy link
Collaborator

Good idea to split this into a separate command!

Copy link
Collaborator

@chaitanyaprem chaitanyaprem left a comment

Choose a reason for hiding this comment

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

LGTM

@richard-ramos richard-ramos merged commit b88907c into master Aug 10, 2023
2 checks passed
@richard-ramos richard-ramos deleted the refactor_key_file branch August 10, 2023 13:32
@richard-ramos richard-ramos mentioned this pull request Aug 9, 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.

3 participants