Command
Helper to assert and run other CLI commands and work with its output.
Functions
command_ensure_exists(command)
Verifies that a command is available, and logs a message in case it is missing.
command_run(command, env=None, workdir=None, shell=True)
Runs a command and prints to full command line, as well as the commands output.
output
command_exec_json(command, env=None, workdir=None)
Executes a command and parses the output as JSON.