Write shell completion scripts in build

This commit is contained in:
Cedric Staub
2017-08-07 15:25:17 -07:00
parent 0eeec32867
commit 30485a7709
2 changed files with 8 additions and 1 deletions
+3 -1
View File
@@ -1,2 +1,4 @@
certigo
certigo.exe
certigo.exe
man/
shell/
+5
View File
@@ -17,3 +17,8 @@ go build -o bin/certigo ${REPO_PATH}
# Generate man page
mkdir -p man
bin/certigo --help-man > man/certigo.1
# Generate completion scripts
mkdir -p shell
bin/certigo --completion-script-zsh > shell/certigo.completion.zsh
bin/certigo --completion-script-bash > shell/certigo.completion.bash