Remove old command

This commit is contained in:
Paul Hauner
2022-08-17 11:53:41 +10:00
parent e463518df6
commit fec2969cd2
6 changed files with 79 additions and 728 deletions

View File

@@ -3,7 +3,7 @@ use clap::ArgMatches;
use environment::Environment;
use types::EthSpec;
mod validator;
mod validators;
pub const CMD: &str = "validator_manager";
@@ -11,7 +11,7 @@ pub fn cli_app<'a, 'b>() -> App<'a, 'b> {
App::new(CMD)
.visible_aliases(&["vm", CMD])
.about("Utilities for managing a Lighthouse validator client via the HTTP API.")
.subcommand(validator::cli_app())
.subcommand(validators::cli_app())
}
/// Run the account manager, returning an error if the operation did not succeed.
@@ -20,7 +20,7 @@ pub async fn run<'a, T: EthSpec>(
env: Environment<T>,
) -> Result<(), String> {
match matches.subcommand() {
(validator::CMD, Some(matches)) => validator::cli_run(matches, env).await?,
(validators::CMD, Some(matches)) => validators::cli_run(matches, env).await?,
(unknown, _) => {
return Err(format!(
"{} is not a valid {} command. See --help.",