From 30485a7709ec458a3caaf19c0cf83f908beae457 Mon Sep 17 00:00:00 2001 From: Cedric Staub Date: Mon, 7 Aug 2017 15:25:17 -0700 Subject: [PATCH] Write shell completion scripts in build --- .gitignore | 4 +++- build | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 95864b0..4bdb5cd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ certigo -certigo.exe \ No newline at end of file +certigo.exe +man/ +shell/ diff --git a/build b/build index 8d4300f..99dc963 100755 --- a/build +++ b/build @@ -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