Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 948 Bytes

README.md

File metadata and controls

34 lines (25 loc) · 948 Bytes

sluggy

Create a slugified alphanumeric name with an optional random string appended or prepended to it.

$ sluggy "Hello There"
oz130toh-hello-there

Options

Usage: sluggy [OPTIONS] [NAME]

Arguments:
  [NAME]  Base name

Options:
  -p, --position <POSITION>  Prepend or append the base name [default: append] [possible values: prepend, append]
  -l <LENGTH>                Sets the length of the random string [default: 8]
  -c, --case <CASE>          Sets the case of the result [default: lowercase] [possible values: lowercase, uppercase, mixed]
  -n, --numbers <NUMBERS>    Where to allow numbers [default: not-first] [possible values: none, anywhere, not-first]
  -h, --help                 Print help information (use `--help` for more detail)
  -V, --version              Print version information

Install

With Rust and Cargo installed:

git clone https://git.sr.ht/~isabelgk/sluggy
cargo install --path .