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

Improve sub-command args syntax #43

Closed
rdsubhas opened this issue Dec 22, 2016 · 1 comment
Closed

Improve sub-command args syntax #43

rdsubhas opened this issue Dec 22, 2016 · 1 comment
Milestone

Comments

@rdsubhas
Copy link
Member

rdsubhas commented Dec 22, 2016

# Before
myke --loglevel=info ... task1[a=1] task2[b=2]

# After
myke --myke-args task1 --task1-args task2 --task2-args

# User-defined task example
myke -v -f *.yml doSomething --from=a doSomethingElse --to=b

# Built-in tasks example
## either special actions that start with /
myke /template --file xyz.tpl
myke /licenses

## or flags
myke --template xyz.tpl
myke --licenses
@fiji-flo
Copy link

fiji-flo commented Jan 9, 2017

really like the look of this:

# User-defined task example
myke -v -f *.yml doSomething --from=a doSomethingElse --to=b

And would vote to use flags for built-in actions:
myke --template

rdsubhas added a commit that referenced this issue Jan 22, 2017
* Prepare migration to new subcommand syntax

* Implement new args syntax

* Update README

* Fix version

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

No branches or pull requests

2 participants