CompletionOptions are the options to control shell completion

Hierarchy

  • CompletionOptions

Methods

Properties

defaultShellCompDirective?: ShellCompDirective

DefaultShellCompDirective sets the ShellCompDirective that is returned if no special directive can be determined

disableDefaultCmd: boolean

DisableDefaultCmd prevents Cobra from creating a default 'completion' command

disableDescriptions: boolean

DisableDescriptions turns off all completion descriptions for shells that support them

disableNoDescFlag: boolean

DisableNoDescFlag prevents Cobra from creating the '--no-descriptions' flag for shells that support completion descriptions

hiddenDefaultCmd: boolean

HiddenDefaultCmd makes the default 'completion' command hidden

Generated using TypeDoc