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

Function parse_registry_command

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

Source from the content-addressed store, hash-verified

231}
232
233fn parse_registry_command(matches: &ArgMatches) -> Result<CliCommand, CliError> {
234 match matches.subcommand() {
235 Some(("get", _)) => Ok(CliCommand::RegistryGet {}),
236 Some(("unlock", _)) => Ok(CliCommand::RegistryUnlock {}),
237 _ => Err(CliError::CommandNotRecognized(
238 matches.subcommand().unwrap().0.into(),
239 )),
240 }
241}
242
243fn parse_webhook_command(matches: &ArgMatches) -> Result<CliCommand, CliError> {
244 match matches.subcommand() {

Callers 1

try_fromMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected