Skip to main content

resolve

Function resolve 

Source
pub fn resolve(
    constant: Host,
    host_arg: Option<&str>,
    env_host: Option<&str>,
) -> Result<Host, ToolError>
Expand description

Narrow the compiled-in host constant. Either host_arg or env_host being Some("opencode") selects Opencode; any other host_arg is rejected; other env values are ignored.