(matches: &ArgMatches)
| 138 | } |
| 139 | |
| 140 | fn parse_explorer_command(matches: &ArgMatches) -> Result<CliCommand, CliError> { |
| 141 | match matches.subcommand() { |
| 142 | Some(("get", matches)) => Ok(CliCommand::ExplorerGetThread { |
| 143 | id: parse_string("id", matches).ok(), |
| 144 | address: parse_pubkey("address", matches).ok(), |
| 145 | }), |
| 146 | _ => Err(CliError::CommandNotRecognized( |
| 147 | matches.subcommand().unwrap().0.into(), |
| 148 | )), |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | fn parse_initialize_command(matches: &ArgMatches) -> Result<CliCommand, CliError> { |
| 153 | Ok(CliCommand::Initialize { |
no test coverage detected