full diff: https://github.com/spf13/cobra/compare/v0.0.3...v1.0.0 Notable Changes - Fish completion (including support for Go custom completion) - API (urgent): Rename BashCompDirectives to ShellCompDirectives - Remove/replace SetOutput on Command - deprecated - Custom completions coded in Go (instead of Bash) - Partial Revert of 922 - Correct documentation for InOrStdin - Apply formatting to templates - Revert change so help is printed on stdout again - Update md2man to v2.0.0 - update viper to v1.4.0 - Update cmd/root.go example in README.md vendor: update cpuguy83/go-md2man v2.0.0 full diff: https://github.com/cpuguy83/go-md2man/compare/v1.0.8...v2.0.0 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
16 lines
450 B
Bash
Executable File
16 lines
450 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Generate man pages for docker/cli
|
|
set -eu -o pipefail
|
|
|
|
mkdir -p ./man/man1
|
|
|
|
# yay, go install creates a binary named "v2" ¯\_(ツ)_/¯
|
|
go build -o "/go/bin/md2man" ./vendor/github.com/cpuguy83/go-md2man/v2
|
|
|
|
# Generate man pages from cobra commands
|
|
go build -o /tmp/gen-manpages github.com/docker/cli/man
|
|
/tmp/gen-manpages --root "$(pwd)" --target "$(pwd)/man/man1"
|
|
|
|
# Generate legacy pages from markdown
|
|
./man/md2man-all.sh -q
|