mirror of
https://github.com/goreleaser/nfpm.git
synced 2026-06-19 08:05:04 +00:00
chore(ci): use fork to gen cmd docs
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
@@ -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.*
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user