jozhw / stdirgen

rust cli tool to generate enumerated directories and files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stdirgen - CLI File/Directory Generation

Static Badge Codecov branch GitHub Workflow Status (with event) GitHub Workflow Status (with event) GitHub Workflow Status (with event) GitHub release (with filter) GitHub all releases


What is Stdirgen?

Stdirgen is a Rust CLI tool used to generate enumerated files or directories.

How to Install

Macos with Homebrew

brew tap jozhw/stdirgen
brew install stdirgen

Other Operating Systems

  • 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

Commands

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

Sub Commands

Directory

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

File

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

About

rust cli tool to generate enumerated directories and files

License:Apache License 2.0


Languages

Language:Rust 99.3%Language:Makefile 0.7%