cli
ptwm.cli.utils
ptwm.cli.utils
ptwm.cli.utils
python/ptwm/cli/utils.py:1module ptwm.cli.utilsptwm.cli.utils.check_and_install_ptwm
python/ptwm/cli/utils.py:15def check_and_install_ptwm() -> NoneCheck if ptwm is installed, and exit with instructions otherwise.
ptwm.cli.utils.GB
python/ptwm/cli/utils.py:7GB = 1024 * 1024 * 1024ptwm.cli.utils.GREEN
python/ptwm/cli/utils.py:11GREEN = '\x1b[92m'ptwm.cli.utils.KB
python/ptwm/cli/utils.py:5KB = 1024ptwm.cli.utils.MB
python/ptwm/cli/utils.py:6MB = 1024 * 1024ptwm.cli.utils.parse_streaming_chunk_size
python/ptwm/cli/utils.py:28def parse_streaming_chunk_size(streaming_chunk_size: int | str) -> intParse the streaming chunk size from a string or integer.
ptwm.cli.utils.RED
python/ptwm/cli/utils.py:9RED = '\x1b[91m'ptwm.cli.utils.replace_in_file
python/ptwm/cli/utils.py:56def replace_in_file(file_path: Path, old: str, new: str) -> NoneReplace all occurrences of `old` with `new` in a file.
ptwm.cli.utils.RESET
python/ptwm/cli/utils.py:12RESET = '\x1b[0m'ptwm.cli.utils.YELLOW
python/ptwm/cli/utils.py:10YELLOW = '\x1b[93m'