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

task alias #49

Open
emahuni opened this issue Sep 5, 2022 · 2 comments
Open

task alias #49

emahuni opened this issue Sep 5, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@emahuni
Copy link

emahuni commented Sep 5, 2022

Is your feature request related to a problem? Please describe

It'd be useful to have an alias for a task. Such will make it easier to work in a large team and reduce mental migration from tools used in different platforms and environments.

Eg: Windows cmd: dir, but in unix it's ls

In addition this will also provide a way to invoke the same task in many different ways, avoiding the same mental clash.

Describe the solution you'd like

  build:clean:
    aliases: ['build+clean', 'build-clean', 'clean-build'],
    # next is meant for single aliases
    alias: build+clean
    desc: clean & build artifacts, which may produce dirs ("dist", "build", ".cache")
    spec: default
    commands:
      - task: rm:build
      - task: build

Additional context

List of tasks would also show these aliases.

@emahuni emahuni added the enhancement New feature or request label Sep 5, 2022
@alajmo
Copy link
Owner

alajmo commented Sep 8, 2022

This is nice to have, though I'm not sure how someone is building cross-platform (mainly windows + linux/mac) tasks, they won't work on windows anyway since your relying on linux/mac commands like ls?

@emahuni
Copy link
Author

emahuni commented Sep 9, 2022

That was just a contrived example of cross platform aliasing for the same thing. No practical value. But I think you get what the feature does.

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

No branches or pull requests

2 participants