Bump github.com/cpuguy83/go-md2man/v2 to v2.0.1 (#1321)
Also fix test expectation for man contents: dash and underscore are no longer escaped with backslash in go-md2man v2.0.1 See cpuguy83/go-md2man#74
This commit is contained in:
parent
a7d59840f4
commit
c2cf7ed6df
2
go.mod
2
go.mod
@ -4,6 +4,6 @@ go 1.11
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/BurntSushi/toml v0.3.1
|
github.com/BurntSushi/toml v0.3.1
|
||||||
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d
|
github.com/cpuguy83/go-md2man/v2 v2.0.1
|
||||||
gopkg.in/yaml.v2 v2.2.3
|
gopkg.in/yaml.v2 v2.2.3
|
||||||
)
|
)
|
||||||
|
12
go.sum
12
go.sum
@ -1,13 +1,9 @@
|
|||||||
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
|
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
|
||||||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
||||||
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d h1:U+s90UTSYgptZMwQh2aRr3LuazLJIa+Pg3Kc1ylSYVY=
|
github.com/cpuguy83/go-md2man/v2 v2.0.1 h1:r/myEWzV9lfsM1tFLgDyu0atFtJ1fXn261LKYj/3DxU=
|
||||||
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
|
github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
|
||||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
|
||||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
||||||
github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q=
|
|
||||||
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
|
||||||
github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo=
|
|
||||||
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
|
|
||||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
|
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
|
||||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
gopkg.in/yaml.v2 v2.2.3 h1:fvjTMHxHEw/mxHbtzPi3JCcKXQRAnQTBRo6YCJSVHKI=
|
gopkg.in/yaml.v2 v2.2.3 h1:fvjTMHxHEw/mxHbtzPi3JCcKXQRAnQTBRo6YCJSVHKI=
|
||||||
|
42
testdata/expected-doc-full.man
vendored
42
testdata/expected-doc-full.man
vendored
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
.PP
|
.PP
|
||||||
greet \- Some app
|
greet - Some app
|
||||||
|
|
||||||
|
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
@ -14,9 +14,9 @@ greet
|
|||||||
.RS
|
.RS
|
||||||
|
|
||||||
.nf
|
.nf
|
||||||
[\-\-another\-flag|\-b]
|
[--another-flag|-b]
|
||||||
[\-\-flag|\-\-fl|\-f]=[value]
|
[--flag|--fl|-f]=[value]
|
||||||
[\-\-socket|\-s]=[value]
|
[--socket|-s]=[value]
|
||||||
|
|
||||||
.fi
|
.fi
|
||||||
.RE
|
.RE
|
||||||
@ -33,7 +33,7 @@ Description of the application.
|
|||||||
.RS
|
.RS
|
||||||
|
|
||||||
.nf
|
.nf
|
||||||
app [first\_arg] [second\_arg]
|
app [first_arg] [second_arg]
|
||||||
|
|
||||||
.fi
|
.fi
|
||||||
.RE
|
.RE
|
||||||
@ -41,13 +41,13 @@ app [first\_arg] [second\_arg]
|
|||||||
|
|
||||||
.SH GLOBAL OPTIONS
|
.SH GLOBAL OPTIONS
|
||||||
.PP
|
.PP
|
||||||
\fB\-\-another\-flag, \-b\fP: another usage text
|
\fB--another-flag, -b\fP: another usage text
|
||||||
|
|
||||||
.PP
|
.PP
|
||||||
\fB\-\-flag, \-\-fl, \-f\fP="":
|
\fB--flag, --fl, -f\fP="":
|
||||||
|
|
||||||
.PP
|
.PP
|
||||||
\fB\-\-socket, \-s\fP="": some 'usage' text (default: value)
|
\fB--socket, -s\fP="": some 'usage' text (default: value)
|
||||||
|
|
||||||
|
|
||||||
.SH COMMANDS
|
.SH COMMANDS
|
||||||
@ -56,26 +56,26 @@ app [first\_arg] [second\_arg]
|
|||||||
another usage test
|
another usage test
|
||||||
|
|
||||||
.PP
|
.PP
|
||||||
\fB\-\-another\-flag, \-b\fP: another usage text
|
\fB--another-flag, -b\fP: another usage text
|
||||||
|
|
||||||
.PP
|
.PP
|
||||||
\fB\-\-flag, \-\-fl, \-f\fP="":
|
\fB--flag, --fl, -f\fP="":
|
||||||
|
|
||||||
.SS sub\-config, s, ss
|
.SS sub-config, s, ss
|
||||||
.PP
|
.PP
|
||||||
another usage test
|
another usage test
|
||||||
|
|
||||||
.PP
|
.PP
|
||||||
\fB\-\-sub\-command\-flag, \-s\fP: some usage text
|
\fB--sub-command-flag, -s\fP: some usage text
|
||||||
|
|
||||||
.PP
|
.PP
|
||||||
\fB\-\-sub\-flag, \-\-sub\-fl, \-s\fP="":
|
\fB--sub-flag, --sub-fl, -s\fP="":
|
||||||
|
|
||||||
.SH info, i, in
|
.SH info, i, in
|
||||||
.PP
|
.PP
|
||||||
retrieve generic information
|
retrieve generic information
|
||||||
|
|
||||||
.SH some\-command
|
.SH some-command
|
||||||
.SH usage, u
|
.SH usage, u
|
||||||
.PP
|
.PP
|
||||||
standard usage text
|
standard usage text
|
||||||
@ -85,9 +85,9 @@ standard usage text
|
|||||||
|
|
||||||
.nf
|
.nf
|
||||||
Usage for the usage text
|
Usage for the usage text
|
||||||
\- formatted: Based on the specified ConfigMap and summon secrets.yml
|
- formatted: Based on the specified ConfigMap and summon secrets.yml
|
||||||
\- list: Inspect the environment for a specific process running on a Pod
|
- list: Inspect the environment for a specific process running on a Pod
|
||||||
\- for\_effect: Compare 'namespace' environment with 'local'
|
- for_effect: Compare 'namespace' environment with 'local'
|
||||||
|
|
||||||
```
|
```
|
||||||
func() { ... }
|
func() { ... }
|
||||||
@ -99,12 +99,12 @@ Should be a part of the same code block
|
|||||||
.RE
|
.RE
|
||||||
|
|
||||||
.PP
|
.PP
|
||||||
\fB\-\-another\-flag, \-b\fP: another usage text
|
\fB--another-flag, -b\fP: another usage text
|
||||||
|
|
||||||
.PP
|
.PP
|
||||||
\fB\-\-flag, \-\-fl, \-f\fP="":
|
\fB--flag, --fl, -f\fP="":
|
||||||
|
|
||||||
.SS sub\-usage, su
|
.SS sub-usage, su
|
||||||
.PP
|
.PP
|
||||||
standard usage text
|
standard usage text
|
||||||
|
|
||||||
@ -117,4 +117,4 @@ Single line of UsageText
|
|||||||
.RE
|
.RE
|
||||||
|
|
||||||
.PP
|
.PP
|
||||||
\fB\-\-sub\-command\-flag, \-s\fP: some usage text
|
\fB--sub-command-flag, -s\fP: some usage text
|
||||||
|
Loading…
Reference in New Issue
Block a user