validate_command

Function validate_command 

Source
pub fn validate_command(
    command: &str,
    options: &ValidationOptions,
) -> Result<()>
Expand description

Validate a command string.

§Arguments

  • command - The command to validate
  • options - Validation options

§Returns

Returns Ok(()) if the command is valid, or an error describing why it’s invalid.