-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hidden Tasks #389
Comments
I have a working implementation of this ready for a PR if interested. |
Hi @kbknapp, thanks for this feature request. I am not sure how I feel about it. Pros:
Cons:
I hope this gives you a sense of how I currently feel about it. For now, I will leave this issue open for further discussion. |
Understood. Just as counter points for your consideration:
I sympathize with this! This addition is a relatively small feature with straight forward meaning and doesn't add a new fundamental concept or capability.
For some toastfiles this ins't an issue, but for others it's not as easy. I.e. there is one common toastfile I use that has 20-ish tasks, with two "public" ones. Add to that several of the "private"/"glue" tasks have ENV vars, so the
For this I could change the wording of the
Granted, that means adding a new flag and a task field, so adding more back to point one 😄 |
Just to add another idea to the discussion (I'm not sure if I like this or not): only list the tasks that have a non-null As you suggested, Toast could also print something like "Only tasks which have a One downside is that you wouldn't be able to add a description for tasks that you don't want to show up in the list. In that case, you could just add |
Although that would be fine for my use case as well, I think it is less obvious at first glance. i.e. if I open a toastfile and see |
My thinking was: for hidden tasks, there is no point in setting the |
I totally agree and see where you were coming from, I was just trying to think about it from someone new(ish?) to Toast. The implementation difference between these two variants is minimal IMO, although hidden tasks does introduce another field to the Task schema which like you've noted adds to the complexity budget. Thanks for the back and forth with me on the issue! Ultimately, it's your call, and I'm OK either method (and even understand if you'd rather just close the issue for now). |
I think one thing that could help with your concern is that we'd update the help text (
So a new user would already know what the behavior is as soon as they learn about the |
(I'd accept a PR for that.) |
Fixed by #395. |
Description
A way to hide a task from
--list
output. I'm proposing a task optionhidden: bool
which hides said task from the output of--list
Alternatives considered
Hard coding a convention such as a leading underscore (i.e.
_foo:
) being hidden. This has more downsides as it's less clear thanhidden: bool
.Additional context
We often had out Toast files to people not familiar with the project they need to build, or even familiar with Toast. For the most part we can get by with just using default tasks, however there are some Toast files where we need to run different target tasks. In these cases users know to use
--list
to see what options are available. However, many of the tasks shouldn't be used as output targets, and are used as glue tasks. Currently we solve this through convention of a leading underscore (_
) means ignore/don't use a task target. We'd prefer being able to hide such tasks from the output of--list
entirely.The text was updated successfully, but these errors were encountered: