Skip to content

Commit

Permalink
refactoring onboard
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Feb 28, 2023
1 parent a48e1a1 commit 1da22f6
Show file tree
Hide file tree
Showing 10 changed files with 90 additions and 933 deletions.
7 changes: 2 additions & 5 deletions ol/genesis-tools/src/wizard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ use dialoguer::{Confirm, Input};
use indicatif::ProgressIterator;
use std::{path::Path, thread, time::Duration};
use dirs;
use onboard::commands::wizard_val_cmd::ValWizardCmd;
use ol_types::OLProgress;
// use onboard::prelude::Runnable;

#[test]
fn test_wizard() {
Expand Down Expand Up @@ -84,9 +82,8 @@ pub fn start_wizard() -> anyhow::Result<()>{


fn initialize_host() -> anyhow::Result<()> {
// let wiz_cmd = ValWizardCmd::default();
// wiz_cmd.run();
Ok(())
let w = onboard::wizard::Wizard::default();
w.run()
}

// # ENVIRONMENT
Expand Down
20 changes: 3 additions & 17 deletions ol/onboard/src/commands.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
//! MinerApp Subcommands
pub mod genesis_files_cmd;
pub mod version_cmd;
// pub mod wizard_fn_cmd;
pub mod fix_cmd;
pub mod keygen_cmd;
pub mod wizard_fork_cmd;
pub mod wizard_user_cmd;
pub mod wizard_val_cmd;

use self::{
fix_cmd::FixCmd, genesis_files_cmd::GenesisFilesCmd, keygen_cmd::KeygenCmd,
version_cmd::VersionCmd, wizard_fork_cmd::ForkCmd, wizard_user_cmd::UserWizardCmd,
genesis_files_cmd::GenesisFilesCmd, keygen_cmd::KeygenCmd,
version_cmd::VersionCmd, wizard_user_cmd::UserWizardCmd,
wizard_val_cmd::ValWizardCmd,
};
use crate::entrypoint;
Expand Down Expand Up @@ -40,21 +37,10 @@ pub enum WizCmd {
#[options(help = "create all files for validator onboarding")]
Val(ValWizardCmd),

// /// The `fullnode` subcommand
// #[options(help = "create all files for fullnode config")]
// Fullnode(FnWizardCmd),
/// The `keygen` subcommand
#[options(help = "create new account and mnemonic")]
Keygen(KeygenCmd),

/// The `fix` subcommand
#[options(help = "migrate account.json")]
Fix(FixCmd),

/// The `fork` subcommand
#[options(help = "create configs for a fork, from genesis")]
Fork(ForkCmd),


/// The `genesis files` subcommand
#[options(help = "fetch genesis.blob from a github repo")]
GenesisFiles(GenesisFilesCmd),
Expand Down
117 changes: 0 additions & 117 deletions ol/onboard/src/commands/fix_cmd.rs

This file was deleted.

Loading

0 comments on commit 1da22f6

Please sign in to comment.