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: make 'wizards' subcommand of node #419

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

feat: make 'wizards' subcommand of node #419

wants to merge 1 commit into from

Conversation

LGLO
Copy link
Contributor

@LGLO LGLO commented Jan 23, 2025

Draft because proper changelog is required for this one and I have to test every flow

@LGLO LGLO requested a review from AmbientTea January 23, 2025 15:14
@@ -242,7 +229,7 @@ pub fn generate_or_load_key<C: IOContext>(
&format!("A {} key already exists in store: {key} - overwrite it?", key_def.name),
false,
) {
let new_key = generate_keys(context, node_executable, key_def)?;
let new_key = generate_keys(context, &node_executable, key_def)?;
Copy link
Contributor

Choose a reason for hiding this comment

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

generate_keys already has access to context, it can get the executable internally

@@ -59,7 +58,7 @@ pub trait CmdRun {
fn run<C: IOContext>(&self, context: &C) -> anyhow::Result<()>;
}

fn main() -> anyhow::Result<()> {
pub fn run(command: Command) -> anyhow::Result<()> {
Copy link
Contributor

Choose a reason for hiding this comment

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

How about Command::run? It doesn't have to be from the trait

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.

2 participants