5.3.1.21.14. cli.helpers.misc

Miscellaneous helper functions.

This module provides helper functions for environment setup, logging configuration, hashing, and path management, as well as constants for important foxBMS file locations.

Functions

create_pre_commit_file()

Add or update a pre-commit file in the .git/hooks directory.

file_name_from_current_time()

Create a file-system-friendly ISO timestamp as a Path.

get_multiple_files_hash_str(files[, buffer_size])

Return the hexadecimal SHA-256 hash string for multiple files.

get_sha256_file_hash(file_path[, ...])

Calculate the SHA-256 hash of a file.

get_sha256_file_hash_str(file_path[, ...])

Return the hexadecimal SHA-256 hash string of a file.

terminal_link_print(link)

Create a clickable hyperlink string for terminal output.