Play National Lottery games from your terminal.
go install github.com/onyx-and-iris/lottery-cli/cmd/lottery@latestflags
- --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. --count and --count-prompt flags are mutually exclusive.
environment variables
#!/usr/bin/env bash
export LOTTERY_KIND=lotto
export LOTTERY_COUNT=3
export LOTTERY_COUNT_PROMPT=falseRun with the selection prompt without prompting for a count:
lotteryRun with the selection prompt but also prompt for a count:
lottery --count-promptRun with the selection prompt but pass in the count directly:
lottery --count=4Run a single draw directly:
lottery --kind=euromillions Run multiple draws directly:
lottery --kind=euromillions --count=3List the available lotteries:
lottery list
