Skip to main content

handle_init_prompt

Function handle_init_prompt 

Source
pub fn handle_init_prompt(
    template_name: &str,
    force: bool,
    colors: Colors,
) -> Result<bool>
Expand description

Handle the --init-prompt flag using the default path resolver.

Creates a PROMPT.md file from the specified template. This is a convenience wrapper that uses RealConfigEnvironment internally.

§Arguments

  • template_name - The name of the template to use
  • force - If true, overwrite existing PROMPT.md without prompting
  • colors - Terminal color configuration for output

§Returns

Returns Ok(true) if the flag was handled (program should exit after), or an error if template creation failed.