fn resolve_active( directory: &Path, cli_profile: Option<&str>, ) -> Result<Option<String>, CliError>