Module - cli_helper

Module - cli_helper#

Module with auxiliary CLI helper functions.

Functions

check_varenv([env, args])

Update "args" (dictionary) with <env: env_value> if env has a defined value in the host.

get_fx_path([curr_path])

Return the absolute path to fx binary.

get_workspace_parameter(name)

Get a parameter from the workspace config file (.workspace).

pretty(o)

Pretty-print the dictionary given.

print_tree(dir_path[, level, ...])

Given a directory Path object print a visual tree structure.

remove_line_from_file(pkg, filename)

Remove line that contains pkg from the filename file.

replace_line_in_file(line, ...)

Replace line at line_num_to_replace with line.