taskbook icon indicating copy to clipboard operation
taskbook copied to clipboard

Consider making commands be commands instead of flags

Open twisterghost opened this issue 6 years ago • 5 comments

taskbook uses flags for all of the actions it can do:

$ tb --task hello world
$ tb --check 1

These commands do not compose as flags would imply in a CLI, so they should probably just be commands and not flags:

$ tb task hello world
$ tb check 1

This makes it a lot easier to type stuff out, and more coherent with how other CLI apps work.

twisterghost avatar Aug 08 '18 15:08 twisterghost

it would still be reasonable to have aliases for commands too similar to how npm has both npm install and npm i

colingm avatar Aug 10 '18 20:08 colingm

I agree but there are no options in meow which ignore -- prefix.

rjoydip-zz avatar Aug 12 '18 05:08 rjoydip-zz

I think that is why there is discussion on Gitter to investigate using yargs or commander.js

colingm avatar Aug 12 '18 05:08 colingm

@colingm Yeah I have remember.

rjoydip-zz avatar Aug 12 '18 05:08 rjoydip-zz

taskbook uses flags for all of the actions it can do:

$ tb --task hello world
$ tb --check 1

These commands do not compose as flags would imply in a CLI, so they should probably just be commands and not flags:

$ tb task hello world
$ tb check 1

This makes it a lot easier to type stuff out, and more coherent with how other CLI apps work.

I definitely agree with this request. Using commands, as opposed to flags, would seem to make more sense.

anirath avatar Dec 20 '19 04:12 anirath