sh
: Command-running macro
This crate provides two macros for facilitating interactions with the underlying system.
The [cmd
] macro is the lower level macro that implements a DSL to construct
[QCmd
]s. The [sh
] macro is a thin wrapper on top that executes each command
in sequence, panicking if there's a failure.
The DSL allows for easily piping data into and out of the commands from [String
]s and
[Vec<u8>
]s.
Examples
# use sh;
#
#
# run;
For more information, see the documentation for [cmd
].
Future Goals
- Support piping from/to files
- Support piping from one command to the next