discover_binary

Function discover_binary 

Source
pub fn discover_binary() -> Option<BinaryLocation>
Expand description

Discover terraphim-agent binary location.

Searches in order:

  1. System PATH
  2. ./target/release/terraphim-agent (local build)
  3. ~/.cargo/bin/terraphim-agent (cargo install)

Returns None if binary not found in any location.