Module utils

Module utils 

Source

Functions§

backup_settings
Create a backup of current settings
confirm_action
Confirm an action with the user using enhanced selector
ensure_dir_exists
Ensure a directory exists
format_bytes
Format bytes to human readable format
format_duration
Format duration to human readable format
format_list
Format a list of items for display
format_settings_summary
Format settings summary for display
get_credentials_dir
Get the credentials directory
get_env_var_path
Get the path to the environment-specific settings file
get_file_size
Get the file size of a path
get_local_settings_path
Get the current working directory’s claude settings path
get_settings_path
Get the path to the settings file
get_snapshots_dir
Get the snapshots directory
get_timestamp
Get timestamp for display
is_valid_uuid
Check if a string is a valid UUID
restore_from_backup
Restore settings from backup
should_use_local_settings
Check if we should use local or global settings
status_indicator
Get a colored status indicator
truncate_text
Truncate text to a maximum length