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)
| 95 | /// splashsurf::cli::run_splashsurf(["--version"]); |
| 96 | /// ``` |
| 97 | pub fn run_splashsurf<I, T>(args: I) -> Result<(), anyhow::Error> |
| 98 | where |
| 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 | |
| 105 | fn run_splashsurf_impl<I, T>(args: I) -> Result<(), anyhow::Error> |
| 106 | where |
no test coverage detected