package documentation

Utilities for CLI commands.

From __init__.py:

Function cprint Undocumented
Function error Undocumented
Function fatal Undocumented
Function find_dirs Undocumented
Function find_files Undocumented
Function info Undocumented
Function main Undocumented
Function parse_args Undocumented
Function read_file Undocumented
Function run Undocumented
Function warning Undocumented
Function write_file Undocumented
Constant SCRIPT_NAME Undocumented
Constant _COLOR Undocumented
SCRIPT_NAME: str = (source)

Undocumented

Value
''
_COLOR: dict[str, str] = (source)

Undocumented

Value
{'black': '\x1b[30m',
 'red': '\x1b[31m',
 'green': '\x1b[32m',
 'yellow': '\x1b[33m',
 'blue': '\x1b[34m',
 'magenta': '\x1b[35m',
 'cyan': '\x1b[36m',
...
def cprint(clr, msg): (source)

Undocumented

def error(msg): (source)

Undocumented

def fatal(msg): (source)

Undocumented

def warning(msg): (source)

Undocumented

def info(msg): (source)

Undocumented

def run(cmd): (source)

Undocumented

def find_dirs(dirname): (source)

Undocumented

def find_files(dirname, pattern=None, deep=True): (source)

Undocumented

def read_file(path): (source)

Undocumented

def write_file(path, text): (source)

Undocumented

def parse_args(argv): (source)

Undocumented

def main(name, main_fn, usage): (source)

Undocumented