Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 787 Bytes

README.md

File metadata and controls

45 lines (36 loc) · 787 Bytes

Lottery

Does quick picks for U.S. Mega Millions and Powerball if you don't trust the machines at the corner store.

user@host:~$ lottery
Winning numbers:
8-19-24-54-64 (16)
user@host:~$ lottery --help
lottery 0.0.3

USAGE:
    lottery [FLAGS]

FLAGS:
    -h, --help            Prints help information
    -m, --megamillions    Mega Millions Picks (default)
    -p, --powerball       Powerball Picks
    -V, --version         Prints version information

Building, testing, and running

Make sure you have rust installed

Build

cargo build

Test

cargo test

Run

cargo run [-- <lottery flags>]

Install

cargo build --release && sudo cp target/release/lottery /usr/local/bin/lottery