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