Skip to main content

detect_tool

Function detect_tool 

Source
pub fn detect_tool(
    cli_tool: Option<&str>,
    config_tool: Option<&str>,
    start_dir: &Path,
    registry: &PluginRegistry,
) -> Result<DetectionResult>
Expand description

Detect the active tool using the SPEC §7.1 priority chain:

  1. CLI override (--tool)
  2. Environment variable (UBT_TOOL)
  3. Config [project].tool
  4. Auto-detection (walk CWD upward, check detect files)