MarkFlagFilename instructs the various shell completion implementations to limit completions for the named flag to the specified file extensions.
(name string, extensions ...string)
| 42 | // MarkFlagFilename instructs the various shell completion implementations to |
| 43 | // limit completions for the named flag to the specified file extensions. |
| 44 | func (c *Command) MarkFlagFilename(name string, extensions ...string) error { |
| 45 | return MarkFlagFilename(c.Flags(), name, extensions...) |
| 46 | } |
| 47 | |
| 48 | // MarkFlagCustom adds the BashCompCustom annotation to the named flag, if it exists. |
| 49 | // The bash completion script will call the bash function f for the flag. |