diff --git a/CHANGELOG.md b/CHANGELOG.md index da6f38b..8f56d3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,11 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html ## Unreleased +## 0.6.1 (2020-08-17) +### Added +- Commands to install and uninstall completion will now appear in the help + documentation. + ## 0.6.0 (2020-05-16) ### Added diff --git a/appcli/app.go b/appcli/app.go index 1af5b96..d066676 100644 --- a/appcli/app.go +++ b/appcli/app.go @@ -31,14 +31,12 @@ func newBaseApp() *cli.App { Usage: "Set `file` to use as the config file", }, cli.StringFlag{ - Name: "install-completion", - Usage: "Install tab completion for a `shell`", - Hidden: true, + Name: "install-completion", + Usage: "Install tab completion for a `shell`", }, cli.StringFlag{ - Name: "uninstall-completion", - Usage: "Uninstall tab completion for a `shell`", - Hidden: true, + Name: "uninstall-completion", + Usage: "Uninstall tab completion for a `shell`", }, cli.BoolFlag{ Name: "q, quiet", diff --git a/main_test.go b/main_test.go index c58c47e..96858b7 100644 --- a/main_test.go +++ b/main_test.go @@ -57,12 +57,14 @@ Tasks: tidy Clean up and format the repo Global Options: - -f, --file Set file to use as the config file - -h, --help Show help and exit - -q, --quiet Only print command output and application errors - -s, --silent Print no output - -V, --version Print version and exit - -v, --verbose Print verbose output + -f, --file Set file to use as the config file + -h, --help Show help and exit + --install-completion Install tab completion for a shell + -q, --quiet Only print command output and application errors + -s, --silent Print no output + --uninstall-completion Uninstall tab completion for a shell + -V, --version Print version and exit + -v, --verbose Print verbose output ` tpl := template.Must(template.New("help").Parse(message))