pub fn validate_tool_version(
tool: RuntimeTool,
version: Option<String>,
) -> Result<Option<RuntimeToolVersion>, RuntimeSpecError>Expand description
Validate a runtime tool version from a workspace manifest.
§Arguments
tool- Tool name used in diagnostics.version- Optional version requested by the workspace manifest.
§Returns
A trimmed version when one was configured.
§Errors
Returns RuntimeSpecError::EmptyToolVersion for a blank version or
RuntimeSpecError::InvalidToolVersion when the version contains shell metacharacters.