Merge pull request #290 from joe2far/patch-1
Fixed typos in README and docstring
This commit is contained in:
commit
1238ba19d2
@ -117,7 +117,7 @@ cmd := &cobra.Command{
|
|||||||
```
|
```
|
||||||
|
|
||||||
The aliases are not shown to the user on tab completion, but they are accepted as valid nouns by
|
The aliases are not shown to the user on tab completion, but they are accepted as valid nouns by
|
||||||
the completion aglorithm if entered manually, e.g. in:
|
the completion algorithm if entered manually, e.g. in:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# kubectl get rc [tab][tab]
|
# kubectl get rc [tab][tab]
|
||||||
@ -175,7 +175,7 @@ So while there are many other files in the CWD it only shows me subdirs and thos
|
|||||||
|
|
||||||
# Specifiy custom flag completion
|
# Specifiy custom flag completion
|
||||||
|
|
||||||
Similar to the filename completion and filtering usingn cobra.BashCompFilenameExt, you can specifiy
|
Similar to the filename completion and filtering using cobra.BashCompFilenameExt, you can specifiy
|
||||||
a custom flag completion function with cobra.BashCompCustom:
|
a custom flag completion function with cobra.BashCompCustom:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
|
@ -28,7 +28,7 @@ import (
|
|||||||
"github.com/spf13/pflag"
|
"github.com/spf13/pflag"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GenManTree will generate a man page for this command and all decendants
|
// GenManTree will generate a man page for this command and all descendants
|
||||||
// in the directory given. The header may be nil. This function may not work
|
// in the directory given. The header may be nil. This function may not work
|
||||||
// correctly if your command names have - in them. If you have `cmd` with two
|
// correctly if your command names have - in them. If you have `cmd` with two
|
||||||
// subcmds, `sub` and `sub-third`. And `sub` has a subcommand called `third`
|
// subcmds, `sub` and `sub-third`. And `sub` has a subcommand called `third`
|
||||||
|
Loading…
Reference in New Issue
Block a user