Crate cli_utils_hoijui
source ·Statics§
Functions§
- Creates a reader from a string identifier. Both
NoneandSome("-")mean stdin. - Returns “stdin” if that is denoted,
file: '<FILE-NAME>'otherwise. This might be useful for logging. - Creates a reader from a file-path. See
create_input_reader. - Creates a reader that reads from stdin. See
create_input_reader. - Creates a writer from a string identifier. Both
NoneandSome("-")mean stdout. See also:write_to_file - Returns “stdout” if that is denoted,
file: '<FILE-NAME>'otherwise. This might be useful for logging. - Creates a writer that writes to a file. See
create_output_writer. - Creates a writer that writes to stdout. See
create_output_writer. - Figures out whether the given input or output specifier indicates a standard stream (stdin or stdout), or rather a file-path. Both
NoneandSome("-")mean stdin/stdout. - Creates a line iterator (“
Iterator<String>”) from an input stream (BufRead). - Removes an EOL indicator from the end of the given string, if one is present. Removes either:
- Writes a list of strings to a file; one per line. See also:
create_output_writer
Type Aliases§
- This serves as a general purpose, catch-all error type. It is widely compatible, owned, other errors can easily be converted to it, and it depends only on
std. NOTE Try to avoid using this as much as possible, and rather use more specific error types. - This serves as a general purpose, catch-all result type. See
BoxErrorfor more.