Skip to main content

Module profiles

Module profiles 

Source

Functions§

clone_profile
Copies a profile from one name to another
delete_profile
Deletes a profile by name
ensure_profiles_dir
Creates the profiles directory if it doesn’t exist
get_active_profile
Gets the active profile name from HERMES_PROFILE env var, or “default” if not set
list_profiles
Lists all profile names (without .yaml extension)
load_profile
Loads a profile by name, returning the Config
profile_exists
Checks if a profile exists
profile_path
Returns the path to a specific profile: HERMES_HOME/profiles/.yaml
profiles_dir
Returns the profiles directory path: HERMES_HOME/profiles/
rename_profile
Renames a profile (file rename)
save_profile
Saves a config as a profile with the given name