Skip to main content

write_completion_script

Function write_completion_script 

Source
pub fn write_completion_script(shell: ShellType, path: &Path) -> Result<()>
Expand description

Write a completion script to the specified path.

Creates parent directories if needed, then writes the completion script.

§Arguments

  • shell - The target shell type
  • path - The destination path for the script

§Returns

  • Ok(()) - Script written successfully
  • Err(Autom8Error) - If directory creation or file write fails