pub fn manage_config(config_file_path: String) -> Result<ConfigFile, Error>Expand description
Manages the loading of the CLI configuration
§Arguments
config_file_path- The path to the configuration fileargs- The arguments passed to the CLI
§Returns
- A tuple containing the configuration file and the command to execute
§Errors
- If the configuration file is not found
- If the configuration file is missing mandatory fields
§Examples
use jirust_cli::manage_config;
use jirust_cli::config::config_file::ConfigFile;
use jirust_cli::args::commands::Commands;
let config_file_path = String::from("config.json");
let cfg_data = manage_config(config_file_path)?;