macro_rules! rumtk_pipeline_command {
( $path:expr, $data:expr, $args:expr, $env:expr ) => { ... };
( $path:expr, $data:expr, $args:expr ) => { ... };
( $path:expr, $data:expr ) => { ... };
( $path:expr ) => { ... };
}Expand description
Creates a pipeline command out of the provided parameters. Parameters include path, args,
and env. The command has RUMCommand.
env is a map of type RUMCommandEnv containing a set of
key value pair strings that we can use to update the process environment.
§Example
§Program Only
use rumtk_core::rumtk_pipeline_command;
let command = rumtk_pipeline_command!("ls");§Program with Piped Data
use rumtk_core::rumtk_pipeline_command;
use rumtk_core::types::RUMBuffer;
use rumtk_core::strings::RUMStringConversions;
let command = rumtk_pipeline_command!("ls", RUMBuffer::default());§Program with Args
use rumtk_core::rumtk_pipeline_command;
use rumtk_core::types::RUMBuffer;
use rumtk_core::strings::RUMStringConversions;
let command = rumtk_pipeline_command!("ls", RUMBuffer::default(), &vec![
"-l".to_rumstring()
]);