Hide a task
#1614
-
Hello everyone, is there a way to hide a task from getting listet by "rex -T" command? I saw the "hidden" parameter in the Rex::Task module, but do not know how to pass this to my test task. Kind regards, |
Beta Was this translation helpful? Give feedback.
Answered by
ferki
Apr 2, 2024
Replies: 1 comment
-
Hi @LeMerP, there's an internal-facing Lines 418 to 420 in 0f87255 See also:
Happy hacking! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
LeMerP
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @LeMerP,
there's an internal-facing
dont_register
option you may attach to task definitions, like this:Rex/lib/Rex/Commands/Box.pm
Lines 418 to 420 in 0f87255
See also:
include
command to "Include a module without registering its tasks" (instead of loading modules with Perl's ownuse
andrequire
)Happy hacking!