cli/pkg/cmd
Nikola Ristić e87b5bcaff
Add "reference" help topic (#2223)
* Add "reference" help topic

* Only print reference as a help topic

* fix for color fns, slightly generalize

* WIP for switching to markdown

* escape gt/lt

* minor

* higher wrap point

* detect terminal theme

* futz with angle brackets once more

* minor cleanup

* prepend parent commands

* rename help topic fns and add test

* Simplify reference help generation

- the `<...>` characters from command usage line are now preserved by enclosing the entire usage synopsis in a code span
- hard breaks in flag usage lines are preserved by enclosing flag usage in a code block
- TTY detection and Markdown rendering are now delayed until the user explicitly requests `gh help reference`
- `gh help reference` output is now pager-enabled

Co-authored-by: vilmibm <vilmibm@github.com>
Co-authored-by: vilmibm <vilmibm@neongrid.space>
Co-authored-by: Mislav Marohnić <mislav@github.com>
2020-11-18 12:31:36 -06:00
..
alias Fix USAGE help for some commands 2020-11-13 10:10:53 -03:00
api cleanup 2020-11-12 09:52:14 +03:00
auth port entirely to ColorScheme 2020-10-29 12:37:45 -07:00
completion Address PR comments 2020-09-30 12:55:05 +02:00
config Fix USAGE help for some commands 2020-11-13 10:10:53 -03:00
factory Fix release download 2020-09-14 15:31:31 +02:00
gist fix missing import 2020-11-16 14:03:52 -08:00
issue fix survey invocation 2020-11-13 10:35:32 -08:00
pr Implement --web for gh pr checks (#2146) 2020-11-17 12:27:07 -06:00
release Ensure that only PATH is searched when shelling out to external commands 2020-11-11 16:33:13 +01:00
repo Merge pull request #2404 from alissonbrunosa/fix-repo-view-command-with-branch 2020-11-13 13:05:56 +01:00
root Add "reference" help topic (#2223) 2020-11-18 12:31:36 -06:00
version Make markdown:generate annotation a markdown generation override for hidden commands 2020-11-04 12:35:58 +03:00