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

Support labels for commands #1411

Open
Chi-teck opened this issue Nov 27, 2023 · 0 comments
Open

Support labels for commands #1411

Chi-teck opened this issue Nov 27, 2023 · 0 comments
Labels
state: needs triage Waiting to be triaged by a maintainer.

Comments

@Chi-teck
Copy link

Chi-teck commented Nov 27, 2023

Motivation

When running multiple commands it sometimes difficult to distinguish their ouput.

cmds:
  - some/script.sh
  - task: some_task
  - another/script.sh
  - task: another_task

Proposed solution

Add label property to cmd difinition so the above example could be modified as follows.

cmds:
  - label: Step 1
    cmd: ./some/script.sh
  - label: Step 2
    task: some_task
  - label: Step 3
    cmd: another/script.sh
  - label: Step 4
    task: another_task

Currently it requires adding extra commands like follows

cmds:
  - echo -e "\e[0;32mStep 1\e[0m"
  - some/script.sh

This doesn't look well. Also the color scheme may not be consistent with the colors used by Task itself.

@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: needs triage Waiting to be triaged by a maintainer.
Projects
None yet
Development

No branches or pull requests

2 participants