How to add local commands¶
The CLI dynamically discovers commands within the current directory under .dda/extend/commands
. Most commonly, there is only a single run
command group defined here that contains all the commands.
For example, if you wanted to add a dda run foo bar
command, you could add the following files:
The foo
command group might look like this:
The bar
command might look like this:
Tip
See the tutorial for more information about creating commands.
Importing utilities¶
The .dda/extend/pythonpath
directory is added to the Python search path. For example, if you have the following structure:
Commands can import the foo
module like this: