-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: overhauling the help screen generator so it's consistent everyw…
…here (#397) * feat: swapping our colors for chalk * chore: reverting some unnnecessary changes * feat: overhauling the help screen generator so it's consistent everywhere * feat: simplify command listings * ci: fixing chalk to always run in ci * fix: reverting a command description change * test: updating snapshots * fix: "check out" instead of "checkout"
- Loading branch information
Showing
14 changed files
with
346 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,234 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`cli --help should not surface args that are designated as hidden 1`] = ` | ||
" | ||
Alias for \`rdme openapi\`. [deprecated] | ||
[4m[1mUsage[22m[24m | ||
rdme swagger [file] [options] | ||
[4m[1mOptions[22m[24m | ||
[1m--key[22m [4mstring[24m Project API key | ||
[1m--id[22m [4mstring[24m Unique identifier for your API definition. Use this if you're resyncing an | ||
existing API definition | ||
[1m--version[22m [4mstring[24m Project version | ||
[1m-h[22m, [1m--help[22m Display this usage guide | ||
[4m[1mRelated commands[22m[24m | ||
[90m$[39m rdme openapi Upload, or resync, your OpenAPI/Swagger definition to ReadMe. | ||
" | ||
`; | ||
|
||
exports[`cli --help should print help 1`] = ` | ||
" | ||
📖 [34m[1mrdme[22m[39m | ||
[1ma utlity for interacting with ReadMe[22m | ||
. | ||
.\\\\ /. | ||
’ ‘ ‘ ‘ | ||
( nn\\\\ . . / ) | ||
(nnnnn,.MM. AM .nn. | ||
.nnnndMM----_______--M.’’ / | ||
|nnn/nnnnnnnnnnnnnnnnn\\\\’mmm/ | ||
/nnnn...nnnnnnnnnnn...mmmmm\\\\ | ||
/nn ‘qnnnP’ ‘mmm\\\\ | ||
/n’ .XXX. \\\\nnn/ .XX. \\\\mmb | ||
An (XOXX) nnn (XOXX) mm\\\\ | ||
/nn ‘XXXX’.~”~. ‘XXX”’ .mmmb | ||
dnnn. ( )n. .mmmmb | ||
.nnnnnn....n.\\\\ ./nnnnnnnnnmmmmmm\\\\ | ||
(READnnnnnnnnnnn’Y’nnnnnnnnnnmmmmmmME) | ||
REinnnnnnnnnnnnnnnnnnnnnnnnnmmmmmmmAD/ | ||
/MEEnnnnnnnnnnnnnnnnnnnnnnnnnmmmmmmm)E'. | ||
READnnnnnnn*’ ‘*mmmmmmmm)MEE. | ||
(READ|nnnn’ \\\\../ \\\\.../ ‘mmmmmM)EEE) | ||
READ(nn*’ ‘mmm.MEEE) | ||
‘READn’ \\\\._./ \\\\__./ \\\\.../ ‘MEE*’ | ||
* /* | ||
[4m[1mUsage[22m[24m | ||
rdme <command> [arguments] | ||
[4m[1mOptions[22m[24m | ||
[1m-h[22m, [1m--help[22m Display this usage guide | ||
[1m-v[22m, [1m--version[22m Show the current rdme version | ||
[4m[1mAdministration[22m[24m | ||
[90m$[39m rdme login Login to a ReadMe project. | ||
[90m$[39m rdme logout Logs the currently authenticated user out of ReadMe. | ||
[90m$[39m rdme whoami Displays the current user and project authenticated with ReadMe. | ||
[4m[1mUpload OpenAPI/Swagger definitions[22m[24m | ||
[90m$[39m rdme openapi Upload, or resync, your OpenAPI/Swagger definition to ReadMe. | ||
[90m$[39m rdme swagger Alias for \`rdme openapi\`. [deprecated] | ||
[4m[1mDocumentation[22m[24m | ||
[90m$[39m rdme docs Sync a folder of markdown files to your ReadMe project. | ||
[90m$[39m rdme docs:edit Edit a single file from your ReadMe project without saving locally. | ||
[4m[1mVersions[22m[24m | ||
[90m$[39m rdme versions List versions available in your project or get a version by SemVer | ||
(https://semver.org/). | ||
[90m$[39m rdme versions:create Create a new version for your project. | ||
[90m$[39m rdme versions:update Update an existing version for your project. | ||
[90m$[39m rdme versions:delete Delete a version associated with your ReadMe project. | ||
[4m[1mOther useful commands[22m[24m | ||
[90m$[39m rdme oas Helpful OpenAPI generation tooling. | ||
[90m$[39m rdme open Open your current ReadMe project in the browser. | ||
Run [2mrdme help <command>[22m for help with a specific command. | ||
To get more help with ReadMe, check out our docs at https://docs.readme.com. | ||
" | ||
`; | ||
exports[`cli --help should print help for the \`-H\` alias 1`] = ` | ||
" | ||
📖 [34m[1mrdme[22m[39m | ||
[1ma utlity for interacting with ReadMe[22m | ||
. | ||
.\\\\ /. | ||
’ ‘ ‘ ‘ | ||
( nn\\\\ . . / ) | ||
(nnnnn,.MM. AM .nn. | ||
.nnnndMM----_______--M.’’ / | ||
|nnn/nnnnnnnnnnnnnnnnn\\\\’mmm/ | ||
/nnnn...nnnnnnnnnnn...mmmmm\\\\ | ||
/nn ‘qnnnP’ ‘mmm\\\\ | ||
/n’ .XXX. \\\\nnn/ .XX. \\\\mmb | ||
An (XOXX) nnn (XOXX) mm\\\\ | ||
/nn ‘XXXX’.~”~. ‘XXX”’ .mmmb | ||
dnnn. ( )n. .mmmmb | ||
.nnnnnn....n.\\\\ ./nnnnnnnnnmmmmmm\\\\ | ||
(READnnnnnnnnnnn’Y’nnnnnnnnnnmmmmmmME) | ||
REinnnnnnnnnnnnnnnnnnnnnnnnnmmmmmmmAD/ | ||
/MEEnnnnnnnnnnnnnnnnnnnnnnnnnmmmmmmm)E'. | ||
READnnnnnnn*’ ‘*mmmmmmmm)MEE. | ||
(READ|nnnn’ \\\\../ \\\\.../ ‘mmmmmM)EEE) | ||
READ(nn*’ ‘mmm.MEEE) | ||
‘READn’ \\\\._./ \\\\__./ \\\\.../ ‘MEE*’ | ||
* /* | ||
[4m[1mUsage[22m[24m | ||
rdme <command> [arguments] | ||
[4m[1mOptions[22m[24m | ||
[1m-h[22m, [1m--help[22m Display this usage guide | ||
[1m-v[22m, [1m--version[22m Show the current rdme version | ||
[4m[1mAdministration[22m[24m | ||
[90m$[39m rdme login Login to a ReadMe project. | ||
[90m$[39m rdme logout Logs the currently authenticated user out of ReadMe. | ||
[90m$[39m rdme whoami Displays the current user and project authenticated with ReadMe. | ||
[4m[1mUpload OpenAPI/Swagger definitions[22m[24m | ||
[90m$[39m rdme openapi Upload, or resync, your OpenAPI/Swagger definition to ReadMe. | ||
[90m$[39m rdme swagger Alias for \`rdme openapi\`. [deprecated] | ||
[4m[1mDocumentation[22m[24m | ||
[90m$[39m rdme docs Sync a folder of markdown files to your ReadMe project. | ||
[90m$[39m rdme docs:edit Edit a single file from your ReadMe project without saving locally. | ||
[4m[1mVersions[22m[24m | ||
[90m$[39m rdme versions List versions available in your project or get a version by SemVer | ||
(https://semver.org/). | ||
[90m$[39m rdme versions:create Create a new version for your project. | ||
[90m$[39m rdme versions:update Update an existing version for your project. | ||
[90m$[39m rdme versions:delete Delete a version associated with your ReadMe project. | ||
[4m[1mOther useful commands[22m[24m | ||
[90m$[39m rdme oas Helpful OpenAPI generation tooling. | ||
[90m$[39m rdme open Open your current ReadMe project in the browser. | ||
Run [2mrdme help <command>[22m for help with a specific command. | ||
To get more help with ReadMe, check out our docs at https://docs.readme.com. | ||
" | ||
`; | ||
exports[`cli --help should print usage for a given command 1`] = ` | ||
" | ||
Alias for \`rdme openapi\`. [deprecated] | ||
[4m[1mUsage[22m[24m | ||
rdme swagger [file] [options] | ||
[4m[1mOptions[22m[24m | ||
[1m--key[22m [4mstring[24m Project API key | ||
[1m--id[22m [4mstring[24m Unique identifier for your API definition. Use this if you're resyncing an | ||
existing API definition | ||
[1m--version[22m [4mstring[24m Project version | ||
[1m-h[22m, [1m--help[22m Display this usage guide | ||
[4m[1mRelated commands[22m[24m | ||
[90m$[39m rdme openapi Upload, or resync, your OpenAPI/Swagger definition to ReadMe. | ||
" | ||
`; | ||
exports[`cli --help should print usage for a given command if supplied as \`help <command>\` 1`] = ` | ||
" | ||
Alias for \`rdme openapi\`. [deprecated] | ||
[4m[1mUsage[22m[24m | ||
rdme swagger [file] [options] | ||
[4m[1mOptions[22m[24m | ||
[1m--key[22m [4mstring[24m Project API key | ||
[1m--id[22m [4mstring[24m Unique identifier for your API definition. Use this if you're resyncing an | ||
existing API definition | ||
[1m--version[22m [4mstring[24m Project version | ||
[1m-h[22m, [1m--help[22m Display this usage guide | ||
[4m[1mRelated commands[22m[24m | ||
[90m$[39m rdme openapi Upload, or resync, your OpenAPI/Swagger definition to ReadMe. | ||
" | ||
`; | ||
exports[`cli --help should show related commands for a subcommands help menu 1`] = ` | ||
" | ||
List versions available in your project or get a version by SemVer (https://semver.org/). | ||
[4m[1mUsage[22m[24m | ||
rdme versions [options] | ||
[4m[1mOptions[22m[24m | ||
[1m--key[22m [4mstring[24m Project API key | ||
[1m--version[22m [4mstring[24m A specific project version to view | ||
[1m--raw[22m Return raw output from the API instead of in a \\"pretty\\" format. | ||
[1m-h[22m, [1m--help[22m Display this usage guide | ||
[4m[1mRelated commands[22m[24m | ||
[90m$[39m rdme versions:create Create a new version for your project. | ||
[90m$[39m rdme versions:update Update an existing version for your project. | ||
[90m$[39m rdme versions:delete Delete a version associated with your ReadMe project. | ||
" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.