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
args
argument is aNamespace
object 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.toml
pointing to this function:where you replace
your.package
with the name of the module that containscustom_command
.