Skip to main content

generate_completion_script

Function generate_completion_script 

Source
pub fn generate_completion_script(shell: ShellType) -> String
Expand description

Generate a completion script for the specified shell.

Creates a completion script that includes all autom8 commands, subcommands, flags, and options. The script includes dynamic spec file completion that queries ~/.config/autom8/*/spec/ at completion time.

§Arguments

  • shell - The target shell type

§Returns

The completion script as a String.