Skip to main content

install

Function install 

Source
pub fn install(
    existing: Option<&str>,
    command: &str,
) -> Result<(String, bool), String>
Expand description

Install the steering hook into existing settings text (or create a fresh document). Returns the new text and whether it changed. Idempotent: re-installing the same command is a no-op; a --mode change rewrites the command in place. Comments and layout in existing are preserved.