MarkPersistentFlagFilename instructs the various shell completion implementations to limit completions for the named persistent flag to the specified file extensions.
(name string, extensions ...string)
| 59 | // implementations to limit completions for the named persistent flag to the |
| 60 | // specified file extensions. |
| 61 | func (c *Command) MarkPersistentFlagFilename(name string, extensions ...string) error { |
| 62 | return MarkFlagFilename(c.PersistentFlags(), name, extensions...) |
| 63 | } |
| 64 | |
| 65 | // MarkFlagFilename instructs the various shell completion implementations to |
| 66 | // limit completions for the named flag to the specified file extensions. |