gws.lib.cli

Utilities for CLI commands.

Source code: gws.lib.cli

Package Contents

gws.lib.cli.cprint(clr, msg)
gws.lib.cli.error(msg)
gws.lib.cli.exec(cmd)
gws.lib.cli.fatal(msg)
gws.lib.cli.find_dirs(dirname)
gws.lib.cli.find_files(dirname, pattern=None, deep=True)
gws.lib.cli.info(msg)
gws.lib.cli.main(name, main_fn, usage)
gws.lib.cli.parse_args(argv)
class gws.lib.cli.ProgressIndicator(title, total=0, resolution=10)
log(s)
update(add=1)
gws.lib.cli.read_file(path)
gws.lib.cli.run(cmd)
gws.lib.cli.SCRIPT_NAME = ''
gws.lib.cli.text_table(data, header=None, delim=' | ')

Format a list of dicts as a text-mode table.

gws.lib.cli.warning(msg)
gws.lib.cli.write_file(path, text)