sorn

Crates.iosorn
lib.rssorn
version0.1.1
created_at2025-05-17 06:07:01.248439+00
updated_at2025-05-24 09:13:24.514026+00
descriptionsoorn is a CLI tool to generate random strings each consisting of random strings each of length each and separated by `-`. Between the output of two random strings, the program sleeps for seconds. The program will print the output in double quotes unless the --raw option is set.
homepagehttps://tu-dresden.de/ing/informatik/sya/se/studium/lehrveranstaltungen/summer-semester/PROG/index
repositoryhttps://github.com/christoffetzer/sorn.git
max_upload_size
id1677681
size15,875
Scontain (scontain)

documentation

README

sorn

sorn is a CLI tool to generate random strings of length and sleeps for seconds between outputs.

The program is designed to be run from the command line and takes the following arguments:

  • --length: The length of the random string to generate.

  • --sleep: The number of seconds to sleep between generating random strings.

  • --repeat: The number of times to repeat the process of generating a random string and sleeping.

The program uses the clap crate for command line argument parsing. The program uses the rand crate to generate random strings and the std::thread module to sleep.

Usage: sorn_cli [OPTIONS]

Options:
  -l, --length <LENGTH>
          number of random characters to generate
          
          [default: 32]

  -s, --sleep <SLEEP>
          number of seconds to sleep
          
          [default: 10]

  -r, --repeat <REPEAT>
          number of times to repeat
          
          [default: 1000000000]

  -h, --help
          Print help (see a summary with '-h')

Building

  • Update dependencies
cargo update
  • Check with clippy:
cargo clippy -- -W clippy::pedantic
  • Run current version of code and print help
cargo run -- --help
  • Install on your local computer
cargo install --path .
Commit count: 0

cargo fmt