MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/splashsurf / run_splashsurf

Function run_splashsurf

splashsurf/src/cli.rs:97–103  ·  view source on GitHub ↗

Runs the splashsurf CLI with the provided command line arguments. This function behaves like the binary `splashsurf` command line tool including output to stdout and stderr. It will also exit the process depending on the command line arguments, so it should not be used in typical library contexts. Note that the first argument is always ignored - this is typically the binary name when called using

(args: I)

Source from the content-addressed store, hash-verified

95/// splashsurf::cli::run_splashsurf(["--version"]);
96/// ```
97pub fn run_splashsurf<I, T>(args: I) -> Result<(), anyhow::Error>
98where
99 I: IntoIterator<Item = T>,
100 T: Into<std::ffi::OsString> + Clone,
101{
102 run_splashsurf_impl(args).inspect_err(logging::log_error)
103}
104
105fn run_splashsurf_impl<I, T>(args: I) -> Result<(), anyhow::Error>
106where

Callers 3

run_pysplashsurfFunction · 0.85
run_splashsurf_pyFunction · 0.85
mainFunction · 0.85

Calls 1

run_splashsurf_implFunction · 0.85

Tested by

no test coverage detected