Defining Multiline Tasks Through Presets with mise config set #3811
gabalicious
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here’s your markdown again:
Discovery: Using
mise config set
for Multiline TasksHi Mise team,
First, I want to say how much I love Mise and how it's been a game-changer for my workflow. Recently, I had an interesting discovery while trying to create a multiline task, and I thought it might help others if I shared it here.
The Problem
I was trying to add a task through a preset with multiline commands. Initially, I attempted to use
mise task add
, but I couldn’t get it to work. No matter how I formatted the commands, they wouldn’t be interpreted correctly or executed in the proper syntax.The "Hail Mary" Attempt
After multiple tries—and almost giving up—I decided to rely on AI tools (like Copilot and Anthropic's engine) for suggestions. That’s when it suggested a completely different approach, one I hadn’t seen in the documentation:
I thought, “Why not give it a shot?” and it worked! 🎉
The result in the TOML file looked like this:
What I Learned
mise config set
with the-t string
option allowed me to define the multiline commands, preserving the line breaks as needed.-t
option (e.g.,-t string
,-t bool
, or other types) might also work in other contexts, which could be worth exploring.Suggestion
Could this be added to the documentation? A small section about multiline tasks and the
mise config set
approach (ormise task add
if there is a way) would help others who face the same issue. It's especially useful to add tasks as part of a preset.Thank you for building such an amazing tool, and I hope this discovery can help others as well. If this behavior is intended or there’s a better way to handle multiline tasks, I’d love to learn more!
Beta Was this translation helpful? Give feedback.
All reactions