tommy-mitchell / listr-cli

Command-line task lists made pretty.
https://npm.im/listr-cli
MIT License
0 stars 0 forks source link

Allow naming tasks #6

Closed tommy-mitchell closed 1 year ago

tommy-mitchell commented 1 year ago

Tasks should be able to have custom names beyond their command name:

listr lint:xo types:"tsc --noEmit" "coverage and tests":"c8 ava" tsd

Currently, only the command name is displayed before/after running a command. For example, the node scripts from the tests:

# success command
node -e 'process.exit(0)'

# fail command
node -e 'process.exit(1)'

are not identifiable after running:

❯ listr "node -e 'process.exit(0)'" "node -e 'process.exit(1)'" --all-optional
✔ node [0.1s]
✖ node