MCPcopy Create free account
hub / github.com/clockwork-xyz/clockwork / parse_explorer_command

Function parse_explorer_command

cli/src/parser.rs:140–150  ·  view source on GitHub ↗
(matches: &ArgMatches)

Source from the content-addressed store, hash-verified

138}
139
140fn 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
152fn parse_initialize_command(matches: &ArgMatches) -> Result<CliCommand, CliError> {
153 Ok(CliCommand::Initialize {

Callers 1

try_fromMethod · 0.85

Calls 2

parse_stringFunction · 0.85
parse_pubkeyFunction · 0.85

Tested by

no test coverage detected