You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
On --list, have different colors per namespace / included Taskfile #1668
I know this idea involves color-coding namespaces when listing all tasks, but I've been thinking about creating groups to categorize tasks in the list. I currently do this manually with Makefiles, and it would be nice to have it here.
I implemented an example just to test:
The idea is to have a group field:
tasks:
build:
group: productiondesc: Build for production usage.cmds:
- echo 'build...'start:
group: developmentdesc: Start the application.cmds:
- echo 'start...'
I was thinking about something that could be implemented within a single file. However, in cases involving numerous tasks, it may be more practical to split them across different files. I looked for a similar feature request but couldn't find this one @pd93. Thanks for the reply.
@betofigueiredo FWIW, namespaces can be used without splitting into multiple files too. Just put a : in the task name (E.g. deveplopment:start) and it should work the same way.
Activity
davidbarratt commentedon May 23, 2024
For me, this would really help when
outputis set toprefixed.Maybe having a
colorkey on a task would be a good interface for users? Any task without a color would fallback to the default?betofigueiredo commentedon Feb 18, 2025
I know this idea involves color-coding namespaces when listing all tasks, but I've been thinking about creating groups to categorize tasks in the list. I currently do this manually with Makefiles, and it would be nice to have it here.
I implemented an example just to test:
The idea is to have a
groupfield:Let me know what you guys think.
pd93 commentedon Feb 19, 2025
@betofigueiredo This has been requested before. Is there any reason you can't use namespaces for logical sorting/grouping?
betofigueiredo commentedon Feb 19, 2025
I was thinking about something that could be implemented within a single file. However, in cases involving numerous tasks, it may be more practical to split them across different files. I looked for a similar feature request but couldn't find this one @pd93. Thanks for the reply.
pd93 commentedon Feb 20, 2025
@betofigueiredo FWIW, namespaces can be used without splitting into multiple files too. Just put a
:in the task name (E.g.deveplopment:start) and it should work the same way.