Crates.io | fgener |
lib.rs | fgener |
version | 0.1.1 |
source | src |
created_at | 2024-02-05 17:01:26.932556 |
updated_at | 2024-02-05 17:10:48.486164 |
description | A package to generate n number of text files with random characters |
homepage | |
repository | https://github.com/swims-hjkl/fgener |
max_upload_size | |
id | 1127759 |
size | 13,467 |
A rust command line utility to generate n number of files with random characters in each one of them.
$ cargo install fgener
$ cd fgener
$ cargo build --release
$ cargo install --path .
$ fgener --help
Usage: fgener [OPTIONS] <OUTPUT_PATH> <NUMBER_OF_FILES>
Arguments:
<OUTPUT_PATH> The output folder where files are generated
<NUMBER_OF_FILES> Number of files to be generated
Options:
-l, --lowest-number-of-chars <LOWEST_NUMBER_OF_CHARS>
least number of characters in a file (Optional) [default: 100]
-h <HIGHEST_NUMBER_OF_CHARS>
highest number of characters in a file (Optional) [default: 2621440]
-h, --help
Print help
-V, --version
Print version
$ fgener ./outputs 10
This should generate 10 files in an output folder if output folder exists.