MCPcopy Create free account
hub / github.com/elastio/devx / bin_name

Method bin_name

devx-cmd/src/lib.rs:477–485  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

475 }
476
477 fn bin_name(&self) -> Cow<'_, str> {
478 self.0
479 .bin
480 .components()
481 .last()
482 .expect("Binary name must not be empty")
483 .as_os_str()
484 .to_string_lossy()
485 }
486}
487
488/// Wraps [`std::process::Child`], kills and waits for the process on [`Drop`].

Callers 2

log_outputMethod · 0.80
stdout_linesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected