dm_mac.cli_utils module
Utility functions for command-line tools.
- dm_mac.cli_utils.env_var_or_die(varname: str, content: str) str
Return the value of an env var, or raise exception if not set.
- dm_mac.cli_utils.set_log_debug(lgr: Logger) None
Set logger level to DEBUG, and debug-level output format.
- dm_mac.cli_utils.set_log_info(lgr: Logger) None
Set logger level to INFO.
- dm_mac.cli_utils.set_log_level_format(lgr: Logger, level: int, fmt: str) None
Set logger level and format.