Skip to main content

find_commands

Given a path to a management directory, return a list of all the command names that are available.

def find_commands(
management_dir: string
) - > list

Given a path to a management directory, return a list of all the command names that are available.

Parameters

NameTypeDescription
management_dirstringThe file system path to the Django-style management directory containing a 'commands' subdirectory.

Returns

TypeDescription
listA list of strings representing the names of available command modules found within the directory.