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

Introduce tomo TASK as a CLI shorthand for tomo run TASK #25

Merged
merged 8 commits into from Jul 13, 2019

Conversation

mattbrictson
Copy link
Owner

Inspired by yarn, this PR modifies Tomo::CLI so that the run command is implied and can be omitted when running tasks from the command line. This syntax will also be familiar to rake users.

In other words, instead of:

$ tomo run rails:console

You can now write:

$ tomo rails:console

The existing run syntax will continue to be supported.

@mattbrictson mattbrictson added the ✨ Feature Adds a new feature label Jul 13, 2019
@mattbrictson mattbrictson changed the title As a shortcut, allow tasks to be run via tomo TASK instead of tomo run TASK Allow tasks to be run via tomo TASK as a shorthand for tomo run TASK Jul 13, 2019
@mattbrictson mattbrictson changed the title Allow tasks to be run via tomo TASK as a shorthand for tomo run TASK Allow tasks to be executed via tomo TASK as a shorthand for tomo run TASK Jul 13, 2019
@mattbrictson mattbrictson changed the title Allow tasks to be executed via tomo TASK as a shorthand for tomo run TASK Introduce tomo TASK as a CLI shorthand for tomo run TASK Jul 13, 2019
@mattbrictson mattbrictson merged commit 8b4acc7 into master Jul 13, 2019
@mattbrictson mattbrictson deleted the features/shortcut-for-running-tasks branch July 13, 2019 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature Adds a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant