Skip to main content

bash

Function bash 

Source
pub fn bash(
    program: &Program<'_>,
    records: &[Record],
) -> Result<String, GenerateError>
Expand description

Generate a bash completion script.

The script defines _<program> and registers it with complete -F. It completes the subcommand, the flags that belong to the subcommand already typed (and the unscoped ones), the values of enumerated flags, file names for path-valued flags, and enumerated or path positional arguments.