cli/pkg
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
..
browser Ensure that only PATH is searched when shelling out to external commands 2020-11-11 16:33:13 +01:00
cmd Add "reference" help topic (#2223) 2020-11-18 12:31:36 -06:00
cmdutil Extract repeated code to util function 2020-11-03 22:05:04 +01:00
githubtemplate get everything working 2020-11-12 12:03:32 -08:00
httpmock Prompt for push target during pr create 2020-09-16 14:49:36 +02:00
iostreams Ensure that only PATH is searched when shelling out to external commands 2020-11-11 16:33:13 +01:00
jsoncolor Add tests for jsoncolor 2020-06-08 16:05:00 +02:00
markdown Add "reference" help topic (#2223) 2020-11-18 12:31:36 -06:00
prompt fix survey invocation 2020-11-13 10:35:32 -08:00
surveyext Ensure that only PATH is searched when shelling out to external commands 2020-11-11 16:33:13 +01:00
text Improve string display width calculation 2020-09-11 11:56:54 +02:00