Commit Graph

63 Commits

Author SHA1 Message Date
3288bec5be
Introduce a v2.x semver approval gate 2022-05-04 10:32:29 -04:00
e3aa8d3246
Add failing test for #1373 2022-04-25 20:16:01 -04:00
Anthony Fok
c2cf7ed6df
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
2022-01-03 22:46:55 -05:00
John Olheiser
12b7dfd08c
Remove extraneous line from generated markdown (#1311)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2021-11-06 07:37:42 -04:00
Link Dupont
6373f5bf65
feat(docs): Include Description and UsageText in docs output (#1287)
Include Description as part of the DESCRIPTION section, and put UsageText (if it is non-zero) into the Usage subsection.
2021-07-06 20:20:47 -04:00
Derek Smith
581b769cf3
feat(docs): add UsageText to docs output for markdown and man page generation (#1171)
* feat(docs): add UsageText to docs output for markdown and man page generation

* feat(docs): updated tests, DRYd up code, cleaned up string logic

* fix(lint): fixed go1.15 lint errors
2021-05-20 21:04:51 -04:00
Erin Call
5bb54ace57
fish.go: support PathFlag.TakesFile [#1156] 2020-06-22 17:24:44 -07:00
Sascha Grunert
5b3508d95e
Fix man page heading formatting
Closes #1040

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-01-15 08:51:07 +01:00
Sascha Grunert
2cb62f5091
Improve docs generation for cli.Authors
This allows specifying multiple authors, whereas no available authors
will be formatted correctly now.

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2019-11-09 11:32:34 +01:00
Sascha Grunert
4bbff84169
Escape single quotes in fish shell completion
Single quotes can break the generated fish shell completion and should
be escaped correctly.

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2019-08-30 08:56:11 +02:00
Sascha Grunert
a1cf7f44b6
Add TakesFile to fish shell completion
The new `TakesFile` flag will be now consumed by the fish shell
completion generator.

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2019-08-25 13:58:18 +02:00
Sascha Grunert
7506b11da7
Add fish shell completion support
This commit adds a new method `ToFishCompletion` to the `*App` which can
be used to generate a fish completion string for the application.

Relates to: #351

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2019-08-09 08:58:06 +02:00
Sascha Grunert
40d4a25a01
Add markdown and man page docs generation methods
This adds two new methods to the `App` struct:

- `ToMarkdown`: creates a markdown documentation string
- `ToMan`: creates a man page string

Signed-off-by: Sascha Grunert <mail@saschagrunert.de>
2019-08-07 14:02:28 +02:00