Skip to main content

handle_init_global_with

Function handle_init_global_with 

Source
pub fn handle_init_global_with<R: ConfigEnvironment>(
    colors: Colors,
    env: &R,
) -> Result<bool>
Expand description

Handle the --init-global flag with a custom path resolver.

Creates a unified config file at the path determined by the resolver. This is the recommended way to configure Ralph globally.

§Arguments

  • colors - Terminal color configuration for output
  • resolver - Path resolver for determining config file location

§Returns

Returns Ok(true) if the flag was handled (program should exit after), or an error if config creation failed.