Skip to content

A collection of personal CLI utilities written in Rust.

License

Notifications You must be signed in to change notification settings

Esgrove/cli-tools

Repository files navigation

cli-tools

Various CLI helper tools in one Rust project. Produces separate binaries for each tool.

./build.sh
./install.sh

Div

Print divider comment with centered text

Usage: div [OPTIONS] [TEXT]...

Arguments:
  [TEXT]...  Optional divider text(s)

Options:
  -l, --length <LENGTH>   Divider length in number of characters [default: 120]
  -c, --char <CHARACTER>  Divider length in number of characters [default: %]
  -a, --align             Align multiple divider texts to same start position
  -h, --help              Print help
  -V, --version           Print version

Dots

Replace whitespaces in filenames with dots

Usage: dots [OPTIONS] [PATH]

Arguments:
  [PATH]  Optional input directory or file

Options:
  -f, --force    Overwrite existing files
  -p, --print    Only print changes without renaming
  -v, --verbose  Verbose output
  -h, --help     Print help
  -V, --version  Print version

Flip-date

Rename files and directories to use yyyy.mm.dd date format for files, and yyyy-mm-dd for directories.

Flip dates in file and directory names to start with year

Usage: flipdate [OPTIONS] [PATH]

Arguments:
  [PATH]  Optional input directory or file

Options:
  -d, --dir        Use directory rename mode
  -p, --print      Only print changes without renaming
  -r, --recursive  Use recursive path handling
  -h, --help       Print help
  -V, --version    Print version

Visa-parse

Parse Finvoice credit card statements and output items as CSV and Excel sheet.

Parse credit card Finvoice XML files

Usage: visaparse [OPTIONS] [PATH]

Arguments:
  [PATH]  Optional input directory or XML file path

Options:
  -o, --output <OUTPUT_PATH>  Optional output path (default is same as input dir)
  -p, --print                 Only print info without writing to file
  -v, --verbose               Verbose output
  -h, --help                  Print help
  -V, --version               Print version