Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better cli framework #5

Open
3 tasks done
at15 opened this issue Sep 9, 2016 · 2 comments
Open
3 tasks done

Better cli framework #5

at15 opened this issue Sep 9, 2016 · 2 comments

Comments

@at15
Copy link
Member

at15 commented Sep 9, 2016

mewo is just a simple wrapper around minimist and I am expecting a cli framework like in golang, which you can

  • register command 631c84c
  • show help when using -h or --help
  • get flags

Ref

Lib

at15 added a commit that referenced this issue Sep 9, 2016
- add Cli application
- add Command class
at15 added a commit that referenced this issue Sep 11, 2016
- add .ayi.yml to use Ayi test instead of npm run ft
- add cmd folder
- don't load config by default, should do it before executing a callback
at15 added a commit that referenced this issue Sep 11, 2016
- only show description
- when -h or --help is presented, the real command execution is skipped,
  only help text is shown
at15 added a commit that referenced this issue Sep 12, 2016
- add flag and add flags is supported, but is used for generate help
  documentation mostly, not for retrieving values
- TODO: global flag support is partly implemented, trace back parent
  command to get all the global flags is needed.
@at15 at15 mentioned this issue Sep 12, 2016
5 tasks
@at15
Copy link
Member Author

at15 commented Nov 20, 2016

btw: just found https://github.com/yargs/yargs, seems to be very similar to what I am doing.

@at15
Copy link
Member Author

at15 commented Dec 15, 2016

https://github.com/tj/commander.js is also similar in some way

Update

Found tj's commander again when come across vue-cli, though one thing I like about golang command line framework is each command is in one single file, though one could argue that registering all commands in one file is better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant