Skip to main content

resolve_path

Function resolve_path 

Source
pub fn resolve_path(
    path_template: &str,
    params: &HashMap<String, String>,
) -> Result<String, Box<dyn Error + Send + Sync>>
Expand description

Resolve path template into concrete path by substituting {param} with values. Values come from params map (CLI -p), then env X_API_<PARAM_NAME> (uppercase, - → _).