1
0
mirror of https://github.com/nginxinc/nginx-prometheus-exporter.git synced 2025-07-30 10:03:04 +03:00

Add completions and manpages (#580)

This commit is contained in:
Luca Comellini
2023-12-27 06:51:54 -08:00
committed by GitHub
parent 93f17f47f0
commit 94f563d523
5 changed files with 32 additions and 4 deletions

7
scripts/completions.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
set -e
rm -rf completions
mkdir completions
for shell in bash zsh; do
go run . --completion-script-$shell >completions/nginx-prometheus-exporter.$shell
done

5
scripts/manpages.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
set -e
rm -rf manpages
mkdir manpages
go run . --help-man | gzip -c -9 >manpages/nginx-prometheus-exporter.1.gz