Crate cli_utils_hoijui

Source

Statics§

STREAM_PATH

Functions§

create_input_reader
Creates a reader from a string identifier. Both None and Some("-") mean stdin.
create_input_reader_description
Returns “stdin” if that is denoted, file: '<FILE-NAME>' otherwise. This might be useful for logging.
create_input_reader_file
Creates a reader from a file-path. See create_input_reader.
create_input_reader_stdin
Creates a reader that reads from stdin. See create_input_reader.
create_output_writer
Creates a writer from a string identifier. Both None and Some("-") mean stdout. See also: write_to_file
create_output_writer_description
Returns “stdout” if that is denoted, file: '<FILE-NAME>' otherwise. This might be useful for logging.
create_output_writer_file
Creates a writer that writes to a file. See create_output_writer.
create_output_writer_stdout
Creates a writer that writes to stdout. See create_output_writer.
denotes_std_stream
Figures out whether the given input or output specifier indicates a standard stream (stdin or stdout), or rather a file-path. Both None and Some("-") mean stdin/stdout.
lines_iterator
Creates a line iterator (“Iterator<String>”) from an input stream (BufRead).
remove_eol
Removes an EOL indicator from the end of the given string, if one is present. Removes either:
write_to_file
Writes a list of strings to a file; one per line. See also: create_output_writer

Type Aliases§

BoxError
This serves as a general purpose, catch-all error type.
BoxResult
This serves as a general purpose, catch-all result type. See BoxError for more.