clgambling

Crates.ioclgambling
lib.rsclgambling
version0.1.1
created_at2025-08-08 17:50:26.283441+00
updated_at2025-08-10 17:03:04.674665+00
descriptionA CLI tool where you need to gamble in order to do something
homepage
repositoryhttps://github.com/HQ2000-Rust/CLG
max_upload_size
id1787158
size118,259
Jonathan Schmittat (HQ2000-Rust)

documentation

README

CLG

No idea how original it is (I hope so), but basically your luck determines if and how the commands you type are executed. Partially complies to the POSIX standard.

Usage

this is the same output as if you would run the --help flag alongside this CLI

Commands

  • cat - concatenate and display files
  • cp - copy a file
  • cut - only show a certain range for each line
  • date - display the local date and time
  • dirname - display the name of the current directory
  • echo - output formatted text and access special variables
  • file - display the MIME type of a file
  • getconf - get the configuration options
  • ls - list all files and directories in the current directory
  • mkdir - create a directory
  • rm - remove one or more files
  • rmdir - remove one or more directories
  • sleep - pause the execution of the program
  • wc - display word, byte and newline counts
  • help - Print this message or the help of the given subcommand(s)

Options

  • -h, --help - Print help
  • -V, --version - Print version

Setup

  1. Download the latest release for your OS/arch like windows-x86-64

If you don't find your OS and arch in the latest release, compile it (see Compilation

  1. Put it into your desired directory with sufficient permissions (A "Playground" where you can safely delete or make new files and directories)

You can optionally add it to the path, even though I would not recommend it because of its missing suitability

  1. Run the executable (.\CLG.exe on windows, ./CLG.exe on linux.bin, etc)
  1. Finished!

Compilation

  1. Download this repository
  2. Install Rust via Rustup if you haven't already installed it
  3. Run cargo install CLG
  4. Run it as above stated

Safety

  • This is a CLI tool that contains commands like rmdir or rm which can unrecoverably delete potentially important/valueable files, depending on your OS (see the trash bin).
  • Fortunately, you can only delete an empty directory / one file at at time, so actually causing any accidental damage is mostly very unlikely
  • That mentioned, please only use this tool carefully, Control-C is always acceptable
Commit count: 0

cargo fmt