Files
lottery-cli/README.md

1.7 KiB

Windows Linux macOS

lottery

Play National Lottery games from your terminal.

Selection Prompt

Draw

Install

go install github.com/onyx-and-iris/lottery-cli/cmd/lottery@latest

Configuration

flags

  • --kind/-k: The kind of lottery.
  • --count/-c: Number of draws to generate.
  • --count-prompt/-C: Prompt for the number of draws to generate.

Note. If both --count and --count-prompt are passed the count prompt will win.

environment variables

#!/usr/bin/env bash

export LOTTERY_KIND=lotto
export LOTTERY_COUNT=3
export LOTTERY_COUNT_PROMPT=false

Use

Run with the selection prompt without prompting for a count:

lottery

Run with the selection prompt but also prompt for a count:

lottery --count-prompt

Run with the selection prompt but pass in the count directly:

lottery --count=4

Run a single draw directly:

lottery -k=euromillions 

Run multiple draws directly:

lottery -k=euromillions -c=3

Special Thanks