Start adding CLI tests

This commit is contained in:
Paul Hauner
2022-08-22 15:29:11 +10:00
parent 1d4e7ba6b8
commit 4886e27827
4 changed files with 66 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ use std::path::PathBuf;
use types::EthSpec;
use validators::create_validators::write_to_json_file;
mod validators;
pub mod validators;
pub const CMD: &str = "validator_manager";

View File

@@ -181,7 +181,7 @@ pub fn cli_app<'a, 'b>() -> App<'a, 'b> {
/// The CLI arguments are parsed into this struct before running the application. This step of
/// indirection allows for testing the underlying logic without needing to parse CLI arguments.
#[derive(Clone, Serialize, Deserialize)]
#[derive(Clone, PartialEq, Serialize, Deserialize)]
pub struct CreateConfig {
pub output_path: PathBuf,
pub first_index: u32,