Modules
- All utils return exit with an exit code. Usually, the following scheme is used:
- Provides consistent newline/zero terminator handling for
-z
/--zero
flags. - Custom panic hooks that allow silencing certain types of errors.
- Parsing a glob Pattern from a string.
- Parsing a duration from a string.
Macros
- Execute utility code for
util
. - Display an error and
std::process::exit
- Unwrap a
std::result::Result
, crashing instead of panicking. - Get the about text from the help file.
- Reads a section from a file of the util as a
str
literal. - Get the usage from the help file.
- Prompt the user with a formatted string and returns
true
if they reply'y'
or'Y'
- Display a
crate::error::UError
and set global exit code. - Show an error to stderr in a similar style to GNU coreutils.
- Display an error and set global exit code in error case.
- Print a warning message to stderr.
- Shorthand to construct
UIoError
-instances.
Traits
Functions
- Derive the complete execution phrase for “usage”.
- Generate the usage string for clap.
- Read a line from stdin and check whether the first character is
'y'
or'Y'
- Derive the utility name.