[−][src]Function shellfn_core::execute_void_panic
pub fn execute_void_panic<TArg, TEnvKey, TEnvVal>(
cmd: impl AsRef<OsStr>,
args: impl IntoIterator<Item = TArg>,
envs: impl IntoIterator<Item = (TEnvKey, TEnvVal)>
) where
TArg: AsRef<OsStr>,
TEnvKey: AsRef<OsStr>,
TEnvVal: AsRef<OsStr>,
Executes command with args and environment variables, ignores output
- On invalid command: panic
- On error exit code: panic
- On parsing failure: N/A
- Possible errors: N/A
Designed for
use shellfn::shell; #[shell] fn command() { "echo Hello, world" } command()