mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-18 12:22:51 +00:00
Remove old command
This commit is contained in:
@@ -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.",
|
||||
|
||||
Reference in New Issue
Block a user