Custom Tools¶
A tool is a subcommand of the StepUp CLI. While it is rarely necessary to create a new tool, you can do so as follows:
-
Create a new Python function that implements the tool. This function should have a fixed signature:
The
argsargument is aNamespaceobject that contains the command line arguments passed to the tool. -
Create an additional new Python function that implements the argument parsers. This function should have a fixed signature:
-
Create an entry point in
pyproject.tomlpointing to this function:where you replace
your.packagewith the name of the module that containscustom_command.