Expand description
APIs for spawning subprocesses and handling their results.
Macros§
Structs§
- A command to be executed, provided in
command-flags-keywords
form.
Enums§
- Different ways in which a
Cmd
shall be dealt with.
Functions§
- exec_tee 🔒
- Finds all lines in the given
text
that matches all thepatterns
. - Prints the result of
grep
line by line. - Prints the result of
grep
line by line, withheader_lines
of header prepended. Ifheader_lines >= text.lines().count()
, thentext
is printed without changes. - Turns an [
AsyncRead
] into a [Stream
]. - Checks if an executable exists by name (consult
$PATH
) or by path. - Checks if the current user is root or admin.
- prompt 🔒Gives a prompt and returns the index of the user choice.
Type Aliases§
- The status code type returned by a
Cmd
,