Generate help text when calling ws --help.
- first render flows
- then show actions
- then show "internal" commands
Something like this:
- description could be gray
- ignore "default"
- tries to align the "description" in same line
- tries generate runs by returning "targets". Append to existing text.
- if createTargets is used nothing is generated in runs text
- XX if name is not set, use directory name.
Welcome to wrkflow workspace CLI for XX project.
Usage:
ws ................ Runs default tasks in your config (change this description `workspace.flows.default.options.description = 'XX')`.
ws install ...... Setup the current workspace with the install command. Great for new users.
ws check ...... Runs npm:format, npm:lint
ws npm:format .... Runs npm script.
Contacts:
Admin: martin@kluska.cz
Dev: dev@kluska.cz
If the we are in directory without workspace config and no "action" show different help text:
Welcome to wrkflow workspace CLI.
Usage:
ws install <git-repository-url> ..... Install existing workspace from given repository.
ws init ........................................... Initialize new workspace in current directory
ws w:def ....................................... Copies current Typescript definitions to your project
Generate help text when calling
ws --help.Something like this:
If the we are in directory without workspace config and no "action" show different help text: