2 releases
0.1.1 | Feb 5, 2024 |
---|---|
0.1.0 | Feb 5, 2024 |
#2088 in Development tools
5KB
60 lines
fgener
A rust command line utility to generate n number of files with random characters in each one of them.
Installation
$ cargo install fgener
$ cd fgener
$ cargo build --release
$ cargo install --path .
Usage
$ 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
Example
$ fgener ./outputs 10
This should generate 10 files in an output folder if output folder exists.
Dependencies
~1.4–2MB
~37K SLoC