MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / workspace_root

Function workspace_root

e2e/rust/src/harness/binary.rs:13–21  ·  view source on GitHub ↗

Locate the workspace root by walking up from the crate's manifest directory.

()

Source from the content-addressed store, hash-verified

11
12/// Locate the workspace root by walking up from the crate's manifest directory.
13fn workspace_root() -> PathBuf {
14 let manifest_dir = Path::new(env!("CARGO_MANIFEST_DIR"));
15 // e2e/rust/ is two levels below the workspace root.
16 manifest_dir
17 .ancestors()
18 .nth(2)
19 .expect("failed to resolve workspace root from CARGO_MANIFEST_DIR")
20 .to_path_buf()
21}
22
23/// Return the path to the `openshell` CLI binary.
24///

Callers 2

openshell_binFunction · 0.85
workspace_root_resolvesFunction · 0.85

Calls

no outgoing calls

Tested by 1

workspace_root_resolvesFunction · 0.68