fgener

Crates.iofgener
lib.rsfgener
version0.1.1
sourcesrc
created_at2024-02-05 17:01:26.932556
updated_at2024-02-05 17:10:48.486164
descriptionA package to generate n number of text files with random characters
homepage
repositoryhttps://github.com/swims-hjkl/fgener
max_upload_size
id1127759
size13,467
swims_hjkl (swims-hjkl)

documentation

README

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.

Commit count: 0

cargo fmt