(label: &str, value: &str)
| 405 | } |
| 406 | |
| 407 | fn 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 | |
| 416 | fn validate_run_id(run_id: &str) -> CliResult<()> { |
| 417 | if run_id.is_empty() |