Display name for tasks #141
Replies: 5 comments
-
Hi @mgzenitech, I've been thinking I need to revisit how task output is presented, so this is useful feedback, thanks! Thinking aloud here: I agree that the current way that it outputs the just the index of the task in the sequence is not very useful, and outputting the whole task content maybe a bit too much sometimes. I like your idea of prefixing the subtask of the sequence with the sequence task nam e. So currently quiet mode means no extra output, and I think that probably still makes sense, but maybe it should only output multiline tasks in verbose mode? However including task content in the output for simple cases still seems useful to me, a bit like what make does... Further suggestions are welcome! |
Beta Was this translation helpful? Give feedback.
-
Probably it would be best to introduce additional verbosity level:
OR move current default to
That way, everyone would benefit. What do you think? |
Beta Was this translation helpful? Give feedback.
-
There's one more issue though: [tool.poe.tasks.lint]
sequence = [
{ shell = "echo 'what to do here?'" },
"lint:dockerfile",
"lint:markdown",
"lint:poetry",
"lint:versions",
"lint:yaml"
]
ignore_fail = "return_non_zero"
[tool.poe.tasks."lint:yaml"]
sequence = [
"lint:yaml:a",
"lint:yaml:b",
"lint:yaml:c"
]
ignore_fail = "return_non_zero" So my suggestion would probably be to also introduce the index, i.e.:
|
Beta Was this translation helpful? Give feedback.
-
hey @nat-n ! any updates on this? :) |
Beta Was this translation helpful? Give feedback.
-
Hi @mgzenitech, Thanks for the additional feedback. I'm going move this discussion to an issue to bump it up on my todo list but it's not on deck for me at the moment (and my capacity is quite limited lately). If you'd be interested in working on implementing some changes here then I'd be happy to discuss to refine the design. I'm unsure how best to handle the verbosity issue. I understand the desire to have a "less verbose but still informative" output mode, though neither of the two obvious options is ideal. I think showing the full task content (maybe with better formatting) is the optimal default behaviour (for verbosity 0). However it could be a little bit of a disruptive change to the behaviour of the |
Beta Was this translation helpful? Give feedback.
-
Hello!
So currently with
verbosity = 0
we have commands output for each task, however for production use there is no point in displaying everything, i.e. settingverbosity = -1
works best. BUT then if there are sequences within sequences it becomes really hard to track what's going on. Maybe it would be a quick fix just to add optionaldisplay_name
next to each task that would be shown withverbosity = -1
? Or just output the task name?For example if the task names would be output:
would output something like:
Beta Was this translation helpful? Give feedback.
All reactions