Rename cli_util to lcli
This commit is contained in:
parent
c931446fb1
commit
d466f90843
@ -34,7 +34,7 @@ members = [
|
|||||||
"beacon_node/version",
|
"beacon_node/version",
|
||||||
"beacon_node/beacon_chain",
|
"beacon_node/beacon_chain",
|
||||||
"tests/ef_tests",
|
"tests/ef_tests",
|
||||||
"tests/cli_util",
|
"tests/lcli",
|
||||||
"protos",
|
"protos",
|
||||||
"validator_client",
|
"validator_client",
|
||||||
"account_manager",
|
"account_manager",
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "cli_util"
|
name = "lcli"
|
||||||
|
description = "Lighthouse CLI (modeled after zcli)"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Paul Hauner <paul@paulhauner.com>"]
|
authors = ["Paul Hauner <paul@paulhauner.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
@ -15,10 +15,13 @@ use types::{test_utils::TestingBeaconStateBuilder, EthSpec, MainnetEthSpec, Mini
|
|||||||
fn main() {
|
fn main() {
|
||||||
simple_logger::init().expect("logger should initialize");
|
simple_logger::init().expect("logger should initialize");
|
||||||
|
|
||||||
let matches = App::new("Lighthouse Testing CLI Tool")
|
let matches = App::new("Lighthouse CLI Tool")
|
||||||
.version("0.1.0")
|
.version("0.1.0")
|
||||||
.author("Paul Hauner <paul@sigmaprime.io>")
|
.author("Paul Hauner <paul@sigmaprime.io>")
|
||||||
.about("Performs various testing-related tasks.")
|
.about(
|
||||||
|
"Performs various testing-related tasks, modelled after zcli. \
|
||||||
|
by @protolambda.",
|
||||||
|
)
|
||||||
.subcommand(
|
.subcommand(
|
||||||
SubCommand::with_name("genesis_yaml")
|
SubCommand::with_name("genesis_yaml")
|
||||||
.about("Generates a genesis YAML file")
|
.about("Generates a genesis YAML file")
|
||||||
@ -89,7 +92,7 @@ fn main() {
|
|||||||
)
|
)
|
||||||
.subcommand(
|
.subcommand(
|
||||||
SubCommand::with_name("pretty-hex")
|
SubCommand::with_name("pretty-hex")
|
||||||
.about("Parses some SSZ as encoded as ASCII 0x-prefixed hex")
|
.about("Parses SSZ encoded as ASCII 0x-prefixed hex")
|
||||||
.version("0.1.0")
|
.version("0.1.0")
|
||||||
.author("Paul Hauner <paul@sigmaprime.io>")
|
.author("Paul Hauner <paul@sigmaprime.io>")
|
||||||
.arg(
|
.arg(
|
||||||
@ -154,7 +157,7 @@ fn main() {
|
|||||||
("pretty-hex", Some(matches)) => {
|
("pretty-hex", Some(matches)) => {
|
||||||
run_parse_hex(matches).unwrap_or_else(|e| error!("Failed to pretty print hex: {}", e))
|
run_parse_hex(matches).unwrap_or_else(|e| error!("Failed to pretty print hex: {}", e))
|
||||||
}
|
}
|
||||||
(other, _) => error!("Unknown subcommand supplied: {}", other),
|
(other, _) => error!("Unknown subcommand {}. See --help.", other),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user