Skip to content

Commit

Permalink
vendor: spf13/cobra v1.0.0, go-md2man v2.0.0, blackfriday v2.0.1
Browse files Browse the repository at this point in the history
full diff: spf13/cobra@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: cpuguy83/go-md2man@v1.0.8...v2.0.0

Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed May 4, 2020
1 parent 71d760f commit df5cedf
Show file tree
Hide file tree
Showing 44 changed files with 5,174 additions and 3,463 deletions.
2 changes: 1 addition & 1 deletion man/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ package main

// Not used, but required for generating other man pages.
// Import it here so that the package is included by vndr.
import _ "github.com/cpuguy83/go-md2man"
import _ "github.com/cpuguy83/go-md2man/v2"
2 changes: 1 addition & 1 deletion man/md2man-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ for FILE in *.md; do
continue
fi
mkdir -p "./man${num}"
go-md2man -in "$FILE" -out "./man${num}/${name}"
md2man -in "$FILE" -out "./man${num}/${name}"
done
3 changes: 2 additions & 1 deletion scripts/docs/generate-man.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ set -eu -o pipefail

mkdir -p ./man/man1

go install ./vendor/github.com/cpuguy83/go-md2man
# 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
Expand Down
8 changes: 4 additions & 4 deletions vendor.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ github.com/containerd/containerd 4d242818bf55542e5d7876ca276f
github.com/containerd/continuity 26c1120b8d4107d2471b93ad78ef7ce1fc84c4c4
github.com/containerd/cgroups 44306b6a1d46985d916b48b4199f93a378af314f
github.com/coreos/etcd d57e8b8d97adfc4a6c224fe116714bf1a1f3beb9 # v3.3.12
github.com/cpuguy83/go-md2man 20f5889cbdc3c73dbd2862796665e7c465ade7d1 # v1.0.8
github.com/cpuguy83/go-md2man/v2 f79a8a8ca69da163eee19ab442bedad7a35bba5a # v2.0.0
github.com/creack/pty 3a6a957789163cacdfe0e291617a1c8e80612c11 # v1.1.9
github.com/davecgh/go-spew 8991bc29aa16c548c550c7ff78260e27b9ab7c73 # v1.1.1
github.com/docker/compose-on-kubernetes 78e6a00beda64ac8ccb9fec787e601fe2ce0d5bb # v0.5.0-alpha1
Expand Down Expand Up @@ -60,10 +60,10 @@ github.com/prometheus/client_golang c5b7fccd204277076155f10851da
github.com/prometheus/client_model 6f3806018612930941127f2a7c6c453ba2c527d2
github.com/prometheus/common 7600349dcfe1abd18d72d3a1770870d9800a7801
github.com/prometheus/procfs 7d6f385de8bea29190f15ba9931442a0eaef9af7
github.com/russross/blackfriday 1d6b8e9301e720b08a8938b8c25c018285885438
github.com/shurcooL/sanitized_anchor_name 10ef21a441db47d8b13ebcc5fd2310f636973c77
github.com/russross/blackfriday/v2 d3b5b032dc8e8927d31a5071b56e14c89f045135 # v2.0.1
github.com/shurcooL/sanitized_anchor_name 7bfe4c7ecddb3666a94b053b422cdd8f5aaa3615 # v1.0.0
github.com/sirupsen/logrus 60c74ad9be0d874af0ab0daef6ab07c5c5911f0d # v1.6.0
github.com/spf13/cobra ef82de70bb3f60c65fb8eebacbb2d122ef517385 # v0.0.3
github.com/spf13/cobra a684a6d7f5e37385d954dd3b5a14fc6912c6ab9d # v1.0.0
github.com/spf13/pflag 2e9d26c8c37aae03e3f9d4e90b7116f5accb7cab # v1.0.5
github.com/theupdateframework/notary d6e1431feb32348e0650bf7551ac5cffd01d857b # v0.6.1
github.com/tonistiigi/fsutil c2c7d7b0e1441705cd802e5699c0a10b1dfe39fd
Expand Down
21 changes: 0 additions & 21 deletions vendor/github.com/cpuguy83/go-md2man/README.md

This file was deleted.

20 changes: 0 additions & 20 deletions vendor/github.com/cpuguy83/go-md2man/md2man/md2man.go

This file was deleted.

285 changes: 0 additions & 285 deletions vendor/github.com/cpuguy83/go-md2man/md2man/roff.go

This file was deleted.

15 changes: 15 additions & 0 deletions vendor/github.com/cpuguy83/go-md2man/v2/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit df5cedf

Please sign in to comment.