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

Allow adding task name aliases #891

Closed
xavier-sanna opened this issue Oct 11, 2022 · 1 comment
Closed

Allow adding task name aliases #891

xavier-sanna opened this issue Oct 11, 2022 · 1 comment

Comments

@xavier-sanna
Copy link

It would be great to be able to add task name aliases.

For instance, I have this task named: api:prisma:migrate
I would like to add a shortened alias a:p:m and be able to run the task with both notations.

tasks:
  api:npm:install:
    alias: a:n:i
    cmds:
      -  docker-compose exec api sh -c 'npm install {{.CLI_ARGS}'

It could even be a list of aliases, and not constraint the user to a single naming alterrnative.

tasks:
  api:npm:install:
    aliases:
      - a:n:i
      - npmi
      - etc
    cmds:
      -  docker-compose exec api sh -c 'npm install {{.CLI_ARGS}'
@xavier-sanna xavier-sanna changed the title Allow adding command name aliases Allow adding task name aliases Oct 11, 2022
@xavier-sanna
Copy link
Author

Seems to be a duplicate of #675 & #879, sorry about that

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