MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / validate_name

Function validate_name

atomic-cli/src/commands/agent/lifecycle.rs:407–414  ·  view source on GitHub ↗
(label: &str, value: &str)

Source from the content-addressed store, hash-verified

405}
406
407fn validate_name(label: &str, value: &str) -> CliResult<()> {
408 if value.trim().is_empty() {
409 return Err(CliError::InvalidArgument {
410 message: format!("{label} cannot be empty"),
411 });
412 }
413 Ok(())
414}
415
416fn validate_run_id(run_id: &str) -> CliResult<()> {
417 if run_id.is_empty()

Callers 1

runMethod · 0.85

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected