From 38975cd9d6b580b20c9d8d5788c5e7d51937a158 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sat, 1 Aug 2026 04:20:51 +0100 Subject: [PATCH] update not regarding --count and --count-flag update add ListCmd to README. --- README.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a366c96..71f8042 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ go install github.com/onyx-and-iris/lottery-cli/cmd/lottery@latest - --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. +> Note. --count and --count-prompt flags are mutually exclusive. *environment variables* @@ -37,6 +37,8 @@ export LOTTERY_COUNT_PROMPT=false ## Use +### RootCmd + Run with the selection prompt without prompting for a count: ```console @@ -58,13 +60,21 @@ lottery --count=4 Run a single draw directly: ```console -lottery -k=euromillions +lottery --kind=euromillions ``` Run multiple draws directly: ```console -lottery -k=euromillions -c=3 +lottery --kind=euromillions --count=3 +``` + +### ListCmd + +List the available lotteries: + +```console +lottery list ``` ## Special Thanks