Skip to main content

load_global_policy

Function load_global_policy 

Source
pub fn load_global_policy() -> Result<DiagnosticPolicy, String>
Expand description

Load the global policy from $HOME/.config/zenith/config.kdl.

Production variant: resolves the config directory from $HOME (matching the user-scope path convention used elsewhere in the CLI). When $HOME is absent there is no global config to read, so the default policy is returned.