Open toxinu opened 8 years ago
Just realized that underscore prefixed tasks are not listed. Am I wrong?
Doesn't work for me on invoke 0.15.0
, underscore prefixed tasks are still listed (at the top of the list since they are in alphabetical order).
This feature would be much appreciated since I have some pre- and post-tasks which I do not want to flood the task list with (they are not meant to be executed on their own anyway).
pre_task()
needs to be an actual @task
(and both functions need an initial context
argument, at least in modern Invoke, see the changelog for when that changed) - that's the proximate cause of the error here.@task(hidden=True)
, allowing something to be listed as a task for purposes of dependency management and deduplication (i.e. if it were in the main task's body, it'd run every time the main task does, disallowing deduplication/caching - see also #461 which expands that feature set) but where you indicate that it's not intended for direct execution.Any news on this? It would be really useful for dependency management and deduplication
Having @task(hidden=True)
would be awesome
I believe this feature request (as interpreted above to be fundamentally about the ability to hide tasks in general) is also covered by #722 (that one being a later duplicate of this one) and would be closed by merge of #723.
Very similar to #290 but the workaround proposed by @bitprophet doesn't work for pre/post methods.
I get this output:
With this source: