MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / run_help

Function run_help

atomic-cli/tests/it/cli_surface_integration_test.rs:11–23  ·  view source on GitHub ↗
(path: &[String])

Source from the content-addressed store, hash-verified

9use std::process::{Command, Output};
10
11fn run_help(path: &[String]) -> Output {
12 Command::new(env!("CARGO_BIN_EXE_atomic"))
13 .args(path)
14 .arg("--no-color")
15 .arg("--help")
16 .output()
17 .unwrap_or_else(|error| {
18 panic!(
19 "failed to execute `atomic{} --help`: {error}",
20 display_path(path)
21 )
22 })
23}
24
25fn display_path(path: &[String]) -> String {
26 if path.is_empty() {

Callers 1

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected