(label: &str, value: &str)
| 735 | } |
| 736 | |
| 737 | fn 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 | |
| 746 | fn validate_run_id(run_id: &str) -> CliResult<()> { |
| 747 | if run_id.is_empty() |