Commit graph

6 commits

Author SHA1 Message Date
Eli Young
913b78e7a9 Add Bash support for command-substitute flags
These are useful to mark a flag as taking the place of a command. For
example, `kubectl create` can be called using either a subcommand or by
providing a file as input:

    kubectl create --filename=file-input.yml

    kubectl create secret generic [...]

This allows the generated Bash completions to reflect this and suggest
both commands and command-substitute flags.
2016-06-02 17:22:20 -07:00
Dr. Stefan Schimanski
1a0a490d76 Remove plural handling and add aliases for nouns in completion 2016-04-02 12:39:19 +02:00
Dr. Stefan Schimanski
8092588fb8 Add custom bash flag completion 2016-03-21 08:05:54 +01:00
Scott Konzem
39e648c2b0 Fix typos in docs 2015-06-05 13:02:54 -04:00
Eric Paris
48b95d0594 Make the filename extension bit of docs easier to read. 2015-05-04 16:20:06 -04:00
Eric Paris
9b2e6822e5 Add bash autocompletion generator
Given a (potentially annotated) cobra command you can generate a bash
completion script.
2015-04-07 20:13:49 -04:00