Skip to content
Myr

Merge pull request #97 from sdboyer/patch-1

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

Fix misspelling typo

authored by Bjørn Erik Pedersen · committed by Bjørn Erik Pedersen · parents d697cc2, 476e73f · Browse files · 1 file+1 added−1 removed
This commit

State

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

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:README.md+1 added-1 removed
145 unmodified lines
146### Remove a command from its parent147148Removing a command is not a common action in simple programs but it allows 3rd parties to customize an existing command tree.149150In this exemple, we remove the existing `VersionCmd` command of an existing root command, and we replace it by our own version.150In this example, we remove the existing `VersionCmd` command of an existing root command, and we replace it by our own version.151152 mainlib.RootCmd.RemoveCommand(mainlib.VersionCmd)153 mainlib.RootCmd.AddCommand(versionCmd)154
261 unmodified lines