chore(ci): use fork to gen cmd docs

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos A Becker
2021-07-07 01:48:09 +00:00
parent 330cc48893
commit a582b89bec
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -7,7 +7,12 @@ if which gsed >/dev/null 2>&1; then
fi
rm -rf www/docs/cmd/*.md
git checkout -- go.*
go mod edit -replace github.com/spf13/cobra=github.com/caarlos0/cobra@completions-md
go mod tidy
go run ./cmd/nfpm docs
"$SED" \
-i'' \
-e 's/SEE ALSO/See also/g' \
@@ -16,3 +21,6 @@ go run ./cmd/nfpm docs
-e 's/^#### /### /g' \
-e 's/^##### /#### /g' \
./www/docs/cmd/*.md
git checkout -- go.*
+1 -1
View File
@@ -12,7 +12,7 @@ If it is not installed already, you can install it via your OS's package manager
To load completions in your current shell session:
$ source <(nfpm completion bash)
source <(nfpm completion bash)
To load completions for every new session, execute once: