Crates.io | random-output |
lib.rs | random-output |
version | 0.3.0 |
source | src |
created_at | 2023-02-13 16:56:21.036866 |
updated_at | 2023-02-14 08:00:17.028771 |
description | Output random lines to stdout and stderr |
homepage | |
repository | https://github.com/yuma140902/random-output |
max_upload_size | |
id | 784123 |
size | 34,321 |
Outputs random lines to stdout and stderr. Useful for tests for shell scripts and automations.
USAGE:
random-output.exe [OPTIONS]
OPTIONS:
-c, --color Make dates gray, [INFO] green and [ERR] red
-d, --date Show dates in [%yyyy-%mm-%dd %HH:%MM:%SS.%3f] style
-e <STDERR_LINES> Number of stderr lines [default: 10]
--exit <EXIT_CODE> Exit code of the process [default: 0]
-h, --help Print help information
-l, --level Show [INFO] for stdout and [ERR] for stderr
-n <STDOUT_LINES> Number of stdout lines [default: 10]
--prefix <PREFIX> Prefix to add each line [default: ]
--prefix-err <PREFIX_ERR> Prefix to add each stderr line. Defaults to `--prefix`
--suffix <SUFFIX> Suffix to add each line [default: ]
--suffix-err <SUFFIX_ERR> Suffix to add each stderr line. Defaults to `--suffix`
-V, --version Print version information
-w, --working-dir Show working dir in the first line
--wait <WAIT_MS> Specify how long to wait between outputs in <ms> [default: 0]