MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / resolve_config_path

Function resolve_config_path

crates/openshell-server/src/cli.rs:488–495  ·  view source on GitHub ↗
(args: &RunArgs)

Source from the content-addressed store, hash-verified

486}
487
488fn resolve_config_path(args: &RunArgs) -> Result<Option<PathBuf>> {
489 if let Some(path) = args.config.clone() {
490 return Ok(Some(path));
491 }
492
493 let default_path = defaults::default_gateway_config_path()?;
494 Ok(default_path.is_file().then_some(default_path))
495}
496
497fn apply_runtime_defaults(args: &mut RunArgs) -> Result<Option<LocalTlsPaths>> {
498 let local_tls = if args.disable_tls {

Callers 1

prepare_server_configFunction · 0.85

Calls 1

Tested by

no test coverage detected