I have a workflow with two nearly identical keyword triggers and two nearly identical terminal commands. The terminal commands differ only in one regard: which user I want to perform the command as (root vs the current user), and the triggers differ only in the prompt text.
It looks like this:
┌─────┐ ┌─────┐
│ dev │ → │ cmd │
└─────┘ └─────┘
┌─────┐ ┌─────┐
│ dev │ → │ cmd │
└─────┘ └─────┘
Ideally, I'd like to have a way to pass an extra parameter into the terminal command, so that I can make it more like this:
┌─────┐
│ dev │
└─────┘ ↘︎ ┌─────┐
│ cmd │
┌─────┐ ↗︎ └─────┘
│ dev │
└─────┘
The Terminal command is rather complex, and if I have to update it, I'd like to only update it in one spot. Is there a way I can pass additional information in to the command based on which trigger is invoking it?