marko icon indicating copy to clipboard operation
marko copied to clipboard

CLI bin console style enhancement.

Open ulivz opened this issue 8 years ago • 2 comments

Summary

The many popular framework's CLI(command line interface) is pretty accessible with a good-formatted and colorful-suitable print log, for example:

image

As a comparison, which is our snapshot:

image

Context

No very important for me, but I think it can be a power which cannot be ignored to attract more users.

Possible Implementation

I have listed some awesome libraries to quickly build awesome CLI:

cac commander.js yargs caporal.js meow

Open Questions

Is this something you're interested in working on?

Yes, I'm very interested in doing this due to I have woking for CLi creation for some time, it's so attracted for me.

ulivz avatar Aug 08 '17 16:08 ulivz

I agree that we can improve the output of the CLI. We are using argly because in the past I did not like the API that I found in similar libraries. It's been awhile so I can't remember if I have checked all of the other ones you listed. I think it would be fairly straightforward to enhance argly with improved formatting and colorization and that would be my preference (vs switching to a different CLI library).

The code for outputting the usage string can be found here.

patrick-steele-idem avatar Aug 08 '17 17:08 patrick-steele-idem

@patrick-steele-idem I think I can work for this enhancement with straightforward to enhance argly.

ulivz avatar Aug 08 '17 17:08 ulivz