Integrating an external command
... or how to turn a command that you use daily into an overpowered machine.
Creating a task file
from secator.decorators import task # required for `secator` to recognize tasks
from secator.runners import Command # the `secator` runner to use
@task()
class mytool(Command): # make sure class name is lowercase and matches the filename.
cmd = 'mytool' # ... or whatever the name of your external command is.
Adding an input flag [optional]
Parsing a command's output
Adding more options [optional]
Adding an install command [optional]
Using a category [optional]
Supporting proxies [optional]
Example:
Hooking onto runner lifecycle
Example:
Chunking
Last updated