Run tasks in different terminals #1268
-
Hi. Sorry for potentially stupid question, I'm far from the devops field... Is it possible to setup Taskfile to run tasks in different terminals?The main goal is to have log outputs from each task visually separated. Sounds like a common convenience thing, but it's suprisingly hard to google a whole solution.
I understand it's kinda a chicken | egg issue (run a taskfile in terminal which opens new terminals... 🤔) but I'm still curious if someone in the community had orchestrated something like that. Maybe I'm approaching this wrong – please advice an alternative 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @ivan-kleshnin, I honestly just open terminal windows/tabs manually and run each task on its own window/tab. We don't have any plans to build a feature to support that. Since each system is different, it would be impossible to have a solution that works everywhere. If the commands you linked works (I haven't tried them), nothing stops you from adding them to your Taskfile. Something like: version: '3'
tasks:
echo: '{{if .EXTERNAL}}gnome-terminal -- {{end}} echo hello world' task echo EXTERNAL=1 or: version: '3'
tasks:
echo: '{{.PREFIX}} echo hello world' task echo PREFIX="gnome-terminal -- " |
Beta Was this translation helpful? Give feedback.
Hi @ivan-kleshnin,
I honestly just open terminal windows/tabs manually and run each task on its own window/tab.
We don't have any plans to build a feature to support that. Since each system is different, it would be impossible to have a solution that works everywhere.
If the commands you linked works (I haven't tried them), nothing stops you from adding them to your Taskfile. Something like:
task echo EXTERNAL=1
or: