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

Function validate_name

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

Source from the content-addressed store, hash-verified

735}
736
737fn validate_name(label: &str, value: &str) -> CliResult<()> {
738 if value.trim().is_empty() {
739 return Err(CliError::InvalidArgument {
740 message: format!("{label} cannot be empty"),
741 });
742 }
743 Ok(())
744}
745
746fn validate_run_id(run_id: &str) -> CliResult<()> {
747 if run_id.is_empty()

Callers 1

runMethod · 0.85

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected