-
-
Notifications
You must be signed in to change notification settings - Fork 625
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
Make task hidden from user, but callable from inside the Taskfile #295
Comments
Hello @andreynering, just exactly like described in #284. But i also think the user oft my Taskfile should be able to see that there is another, hidden/private task runnable. As i think of it, is there an option to use a variable as precondition? |
Can you elaborate on that? I couldn't get what you mean. |
Hello again, my initial thought was to hide some tasks that do the heavy lifting and just export some control tasks. I'm trying to use these Taskfiles as an interface for configuring and deploying our internal services and applications. I want our employees to just hit But currently i don't know if this is enough for my use case. It might be also a practical idea to share some state between tasks. Something like mutable global vars, for example. But that's another story 😉 |
I second this request, there are definitely use cases for importing a taskfile and having only some of the tasks exposed while some are hidden private/support tasks. |
This comment was marked as off-topic.
This comment was marked as off-topic.
If I understand correctly, something similar is already obtainable simply by not adding a Yes, it is only a convention, but IMHO a good-enough trade-off, that would keep |
Is this issue OK to close with the suggested workaround and the duplicate mentioned in #284? Perhaps an action item coming out of this could be to document the workaround in the usage docs file under a heading that is easily searchable like "Private Tasks" or "Hiding Tasks in |
This is now covered with the help section and Please file a new issue if you feel like the docs need work on this. |
This might be useful for tasks preparing something, called from multiple other tasks.
Hiding the task from the user, eg. its not callable like
task <hidden_task>
, when the preparing stuff is not useful on its own.The text was updated successfully, but these errors were encountered: