Compare commits
No commits in common. "d80ce6d52bfcba0cb4d48a340648d839babf84db" and "8b626f2f7de94f93380a0748b48fe25dfdaa057a" have entirely different histories.
d80ce6d52b
...
8b626f2f7d
@ -284,6 +284,7 @@ fn clap_cmd() -> Command {
|
|||||||
.required(true)
|
.required(true)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
/*
|
||||||
.subcommand(Command::new("report").about("report a node for poor performance")
|
.subcommand(Command::new("report").about("report a node for poor performance")
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new("pubkey")
|
Arg::new("pubkey")
|
||||||
@ -303,6 +304,7 @@ fn clap_cmd() -> Command {
|
|||||||
.help("detail the performance issue you experienced")
|
.help("detail the performance issue you experienced")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
*/
|
||||||
)
|
)
|
||||||
.subcommand(Command::new("vm")
|
.subcommand(Command::new("vm")
|
||||||
.about("virtual machines that run on AMD SEV-SNP nodes")
|
.about("virtual machines that run on AMD SEV-SNP nodes")
|
||||||
|
|||||||
@ -39,13 +39,11 @@ pub fn handle_app_nodes(matches: &ArgMatches) {
|
|||||||
let ip: String = subcom_args.get_one::<String>("ip").unwrap().clone();
|
let ip: String = subcom_args.get_one::<String>("ip").unwrap().clone();
|
||||||
cli_print(inspect_node(ip).map_err(Into::into));
|
cli_print(inspect_node(ip).map_err(Into::into));
|
||||||
}
|
}
|
||||||
Some(("report", subcom_args)) => {
|
Some(("report", _)) => {
|
||||||
let node_pubkey: String = subcom_args.get_one::<String>("pubkey").unwrap().clone();
|
// let node_pubkey: String = path_subcommand.get_one::<String>("pubkey").unwrap().clone();
|
||||||
let contract_uuid: String = subcom_args.get_one::<String>("contract").unwrap().clone();
|
// let contract_uuid: String = path_subcommand.get_one::<String>("contract").unwrap().clone();
|
||||||
let reason: String = subcom_args.get_one::<String>("reason").unwrap().clone();
|
// let reason: String = path_subcommand.get_one::<String>("reason").unwrap().clone();
|
||||||
cli_print(
|
todo!()
|
||||||
crate::general::report_node(node_pubkey, contract_uuid, reason).map_err(Into::into),
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
eprintln!("Available commands are search, inspec and report. Use --help for more information.")
|
eprintln!("Available commands are search, inspec and report. Use --help for more information.")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user