Return the path to the `openshell` CLI binary. Expects the binary at ` /target/debug/openshell`. # Panics Panics if the binary is not found. Run `cargo build -p openshell-cli` (or `mise run e2e:rust`) first.
()
| 29 | /// Panics if the binary is not found. Run `cargo build -p openshell-cli` |
| 30 | /// (or `mise run e2e:rust`) first. |
| 31 | pub fn openshell_bin() -> PathBuf { |
| 32 | let bin = workspace_root().join("target/debug/openshell"); |
| 33 | assert!( |
| 34 | bin.is_file(), |
| 35 | "openshell binary not found at {} — run `cargo build -p openshell-cli` first", |
| 36 | bin.display() |
| 37 | ); |
| 38 | bin |
| 39 | } |
| 40 | |
| 41 | /// Create a [`tokio::process::Command`] pre-configured to invoke the |
| 42 | /// `openshell` CLI. |