pub async fn resolve_runtime_environment(
project_root: &Path,
runtime: Option<&Runtime>,
) -> Result<HashMap<String, String>>Expand description
Resolve environment variables provided by the configured runtime.
Supports Runtime::Nix (runs nix print-dev-env) and Runtime::Devenv
(runs devenv print-dev-env). Other runtime types return an empty map.
ยงErrors
Returns an error if the configured runtime environment cannot be acquired.