1.1.17.4. cli.helpers.misc

Miscellaneous helper functions.

Module Attributes

DISABLE_LOGGING_FOR_MODULES

Modules where logging should be disabled

Functions

convert_eol(file, eol_from, eol_to)

Convert EOL of a file

get_multiple_files_hash_str(files[, buffer_size])

Returns the string representation of a SHA256 hash for multiple files

get_project_root([path])

helper function to find the repository root

get_sha256_file_hash(file_path[, ...])

Calculate the SHA256 hash of a file

get_sha256_file_hash_str(file_path[, ...])

Returns the string representation of a SHA256 hash of a file

ignore_third_party_logging()

Disable logging for third party tool, except for errors

init_path_var_for_foxbms()

Add paths that foxBMS expects to exist to the PATH environment variable.

replace_var(rep)

replace the placeholder in the path with the actual values

set_logging_level([verbosity, _format, datefmt])

sets the module logging level

set_logging_level_cb(ctx, param, value)

sets the module logging level through a click option callback.

terminal_link_print(link)

Prints a clickable link to the terminal :param link: hyperlink that should be clickable