Skip to main content

build_config

Function build_config 

Source
pub fn build_config(cli: &AuthsCli) -> Result<CliConfig>
Expand description

Builds the full CLI configuration from parsed arguments.

Constructs the passphrase provider, HTTP client, and output settings. This is the composition root — the only place where concrete adapter types are instantiated.

Args:

  • cli: The parsed CLI arguments.

Usage:

use auths_cli::factories::build_config;

let cli = AuthsCli::parse();
let config = build_config(&cli)?;