-
-
Notifications
You must be signed in to change notification settings - Fork 624
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
Task identifier shorthand notation / aliases #268
Comments
Hi @aegershman, That's kinda already possible, just more verbose: version: 2
tasks:
do-thing:
cmds:
- ...
dt:
cmds:
- task: do-thing
do:
cmds:
- task: do-thing
do-the-thing:
cmds:
- task: do-thing I liked your idea though, and it's probably easy to implement. |
While you're right about this being kind of possible with your examples, it creates a very cluttered output when doing "task --list". It would be really great to have an "alias:" property to set for tasks, and probably a good way of showing the aliases in the "--list" output would be to just chain them, or have a column for aliases separately. "chained"
alias column:
Something like the above. |
@tommyalatalo That makes sense 👍 |
Closed by mistake, sorry. |
Here is another idea to achieve shortcuts automatically: For example lets say we have a task named This is something already supported by many other terminal commands like Symfony Console. Also If you enter a short command that's ambiguous (i.e. there is more than one command that match), then no command will be run and some suggestions of the possible commands to choose from will be output. |
Thanks all 👍 closing for tidyness |
What does that mean - "closing for tidyness"? Is this continued in another issue, if so, which one? |
I came here to ask the same thing, then decided to open a new issue (#675), with some concrete examples of how this may be implemented, and some pitfalls. |
In order to allow shorthand notation for tasks, consider allowing a task to be referenced by multiple values. For example, and equivalent in
shell
would be...perhaps in a Taskfile.yml it could be...
Just an idea, just putting it out there. Feel free to close whenever, etc. Thanks for your time 👍
The text was updated successfully, but these errors were encountered: