Skip to main content

cmd_prompt_run

Function cmd_prompt_run 

Source
pub fn cmd_prompt_run(
    name: String,
    variables: Vec<String>,
    domain: Option<String>,
    interactive: bool,
) -> Result<(), Box<dyn Error>>
Expand description

Executes the prompt run subcommand.

§Arguments

  • name - Prompt name to run.
  • variables - Variable values as KEY=VALUE pairs.
  • domain - Optional domain scope.
  • interactive - Whether to prompt for missing variables.

§Errors

Returns an error if the prompt is not found or variables are missing.