Display only the task that is running
Opened this issue · 6 comments
Hey guys,
I want to know if there is a way to show the task only when was run or is running, instead of display all the task list from the beginning.
Currently that's not possible. However, we could add an option for this in the update-renderer.
Any idea for a good option name?
I am not good chosening names for variables, but What do you think about displayAll
(default: true) or onlyFinished
(default: false)?
Still have to come up with a good name. Are you willing to do a PR in update-renderer
? You can pick the name you want, we can always change it.
Ok, I will create a PR for this when I have it
If we go for this, I'd suggest just creating a seperate renderer. Would be much cleaner then trying to integrate it in the update-renderer
.
As described in #76, I think a small and elegant solution could be to define a visible()
method at the task level, which can default to visible: () => this.isEnabled()
. Then it would be trivial to override visibility for any task.
There could also be top-level option (e.g. `visibility: 'enabled' | 'pending') to control the whole list, in which case it would simply have to set a different default value.