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

Function parse_string

cli/src/parser.rs:325–330  ·  view source on GitHub ↗
(arg: &str, matches: &ArgMatches)

Source from the content-addressed store, hash-verified

323}
324
325fn parse_string(arg: &str, matches: &ArgMatches) -> Result<String, CliError> {
326 Ok(matches
327 .value_of(arg)
328 .ok_or(CliError::BadParameter(arg.into()))?
329 .to_string())
330}
331
332pub fn _parse_i64(arg: &str, matches: &ArgMatches) -> Result<i64, CliError> {
333 Ok(parse_string(arg, matches)?

Callers 14

parse_bpf_commandFunction · 0.85
parse_crontab_commandFunction · 0.85
parse_explorer_commandFunction · 0.85
parse_secret_commandFunction · 0.85
parse_thread_commandFunction · 0.85
parse_webhook_commandFunction · 0.85
parse_triggerFunction · 0.85
parse_instruction_fileFunction · 0.85
parse_keypair_fileFunction · 0.85
parse_http_methodFunction · 0.85
parse_pubkeyFunction · 0.85
_parse_i64Function · 0.85

Calls 1

to_stringMethod · 0.80

Tested by

no test coverage detected