Stdirgen is a Rust CLI tool used to generate enumerated files or directories.
brew tap jozhw/stdirgen
brew install stdirgen
- Navigate to https://github.com/jozhw/stdirgen/releases
- Download the most recent release that matches your operating system
- The builds are as follows:
- aarch64-apple-darwin
- aarch64-linux-gnu
- universal-apple-darwin
- x86_64-apple-darwin
- x86_64-linux-gnu
- Install the build using cargo or selected package manager
A standardized file and directory generator.
Usage: stdirgen <COMMAND>
Commands:
directory
file
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
Usage: stdirgen directory [OPTIONS] --name <NAME>
Options:
-n, --name <NAME> Name of directory, enumeration will be appended at the end fo the name
-p, --path <PATH> Optional: Path to directory of interest to start the creation if null will use current d
irectory
-i, --iter <ITER> Sets the number of times iteration occurs, if null value is set at 1 [default: 1]
-s, --start <START> Optional: Sets the initial numbering, if null begins at 1 [default: 1]
-f, --files <FILES> Optional: Creates files within each directory created. Note: Requires the delimiter "."
and currently only allows for one delimiter "."
--files-iter <FILES_ITER> Sets the number of times iteration occurs
--files-start <FILES_START> Sets the start
-h, --help Print help
Usage: stdirgen file [OPTIONS] --name <NAME>
Options:
-n, --name <NAME> Name of file, enumeration will be appended at the end of the name. Note: Must contain the delimiter
"." currently only allows for one delimiter "."
-p, --path <PATH> Optional: Path to directory of interest to start the creation if null will use current directory
-i, --iter <ITER> Sets the number of times iteration occurs, if null value is set at 1 [default: 1]
-s, --start <START> Optional: Sets the initial numbering, if null begins at 1 [default: 1]
-h, --help Print help