Skip to content

Commit c2cf7ed

Browse files
authored
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
1 parent a7d5984 commit c2cf7ed

File tree

3 files changed

+26
-30
lines changed

3 files changed

+26
-30
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ go 1.11
44

55
require (
66
github.com/BurntSushi/toml v0.3.1
7-
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d
7+
github.com/cpuguy83/go-md2man/v2 v2.0.1
88
gopkg.in/yaml.v2 v2.2.3
99
)

go.sum

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
22
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
3-
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d h1:U+s90UTSYgptZMwQh2aRr3LuazLJIa+Pg3Kc1ylSYVY=
4-
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
5-
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
6-
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
7-
github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q=
8-
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
9-
github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo=
10-
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
3+
github.com/cpuguy83/go-md2man/v2 v2.0.1 h1:r/myEWzV9lfsM1tFLgDyu0atFtJ1fXn261LKYj/3DxU=
4+
github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
5+
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
6+
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
117
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
128
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
139
gopkg.in/yaml.v2 v2.2.3 h1:fvjTMHxHEw/mxHbtzPi3JCcKXQRAnQTBRo6YCJSVHKI=

testdata/expected-doc-full.man

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
.SH NAME
55
.PP
6-
greet \- Some app
6+
greet - Some app
77

88

99
.SH SYNOPSIS
@@ -14,9 +14,9 @@ greet
1414
.RS
1515

1616
.nf
17-
[\-\-another\-flag|\-b]
18-
[\-\-flag|\-\-fl|\-f]=[value]
19-
[\-\-socket|\-s]=[value]
17+
[--another-flag|-b]
18+
[--flag|--fl|-f]=[value]
19+
[--socket|-s]=[value]
2020

2121
.fi
2222
.RE
@@ -33,21 +33,21 @@ Description of the application.
3333
.RS
3434

3535
.nf
36-
app [first\_arg] [second\_arg]
36+
app [first_arg] [second_arg]
3737

3838
.fi
3939
.RE
4040

4141

4242
.SH GLOBAL OPTIONS
4343
.PP
44-
\fB\-\-another\-flag, \-b\fP: another usage text
44+
\fB--another-flag, -b\fP: another usage text
4545

4646
.PP
47-
\fB\-\-flag, \-\-fl, \-f\fP="":
47+
\fB--flag, --fl, -f\fP="":
4848

4949
.PP
50-
\fB\-\-socket, \-s\fP="": some 'usage' text (default: value)
50+
\fB--socket, -s\fP="": some 'usage' text (default: value)
5151

5252

5353
.SH COMMANDS
@@ -56,26 +56,26 @@ app [first\_arg] [second\_arg]
5656
another usage test
5757

5858
.PP
59-
\fB\-\-another\-flag, \-b\fP: another usage text
59+
\fB--another-flag, -b\fP: another usage text
6060

6161
.PP
62-
\fB\-\-flag, \-\-fl, \-f\fP="":
62+
\fB--flag, --fl, -f\fP="":
6363

64-
.SS sub\-config, s, ss
64+
.SS sub-config, s, ss
6565
.PP
6666
another usage test
6767

6868
.PP
69-
\fB\-\-sub\-command\-flag, \-s\fP: some usage text
69+
\fB--sub-command-flag, -s\fP: some usage text
7070

7171
.PP
72-
\fB\-\-sub\-flag, \-\-sub\-fl, \-s\fP="":
72+
\fB--sub-flag, --sub-fl, -s\fP="":
7373

7474
.SH info, i, in
7575
.PP
7676
retrieve generic information
7777

78-
.SH some\-command
78+
.SH some-command
7979
.SH usage, u
8080
.PP
8181
standard usage text
@@ -85,9 +85,9 @@ standard usage text
8585

8686
.nf
8787
Usage for the usage text
88-
\- formatted: Based on the specified ConfigMap and summon secrets.yml
89-
\- list: Inspect the environment for a specific process running on a Pod
90-
\- for\_effect: Compare 'namespace' environment with 'local'
88+
- formatted: Based on the specified ConfigMap and summon secrets.yml
89+
- list: Inspect the environment for a specific process running on a Pod
90+
- for_effect: Compare 'namespace' environment with 'local'
9191

9292
```
9393
func() { ... }
@@ -99,12 +99,12 @@ Should be a part of the same code block
9999
.RE
100100

101101
.PP
102-
\fB\-\-another\-flag, \-b\fP: another usage text
102+
\fB--another-flag, -b\fP: another usage text
103103

104104
.PP
105-
\fB\-\-flag, \-\-fl, \-f\fP="":
105+
\fB--flag, --fl, -f\fP="":
106106

107-
.SS sub\-usage, su
107+
.SS sub-usage, su
108108
.PP
109109
standard usage text
110110

@@ -117,4 +117,4 @@ Single line of UsageText
117117
.RE
118118

119119
.PP
120-
\fB\-\-sub\-command\-flag, \-s\fP: some usage text
120+
\fB--sub-command-flag, -s\fP: some usage text

0 commit comments

Comments
 (0)