Skip to content
Myr

Merge pull request #290 from joe2far/patch-1

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fixed typos in README and docstring

authored by Eric Paris · committed by Eric Paris · parents c21ee9d, 7192411 · Browse files · 2 files+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−3 removed

  • other:+3 added−3 removed

2 files+3 added−3 removed

modified:doc/man_docs.go+1 added-1 removed
26 unmodified lines
27 "github.com/spf13/cobra"28 "github.com/spf13/pflag"29)3031// GenManTree will generate a man page for this command and all decendants31// GenManTree will generate a man page for this command and all descendants32// in the directory given. The header may be nil. This function may not work33// correctly if your command names have - in them. If you have `cmd` with two34// subcmds, `sub` and `sub-third`. And `sub` has a subcommand called `third`35// it is undefined which help output will be in the file `cmd-sub-third.1`.
183 unmodified lines
modified:bash_completions.md+2 added-2 removed
115 unmodified lines
116}117```118119The aliases are not shown to the user on tab completion, but they are accepted as valid nouns by120the completion aglorithm if entered manually, e.g. in:120the completion algorithm if entered manually, e.g. in:121122```bash123# kubectl get rc [tab][tab]124backend frontend database
49 unmodified lines
174So while there are many other files in the CWD it only shows me subdirs and those with valid extensions.175176# Specifiy custom flag completion177178Similar to the filename completion and filtering usingn cobra.BashCompFilenameExt, you can specifiy178Similar to the filename completion and filtering using cobra.BashCompFilenameExt, you can specifiy179a custom flag completion function with cobra.BashCompCustom:180181```go182 annotation := make(map[string][]string)
24 unmodified lines