update not regarding --count and --count-flag update

add ListCmd to README.
This commit is contained in:
2026-08-01 04:20:51 +01:00
parent 18f56b4ecb
commit 38975cd9d6

View File

@@ -23,7 +23,7 @@ go install github.com/onyx-and-iris/lottery-cli/cmd/lottery@latest
- --kind/-k: The kind of lottery. - --kind/-k: The kind of lottery.
- --count/-c: Number of draws to generate. - --count/-c: Number of draws to generate.
- --count-prompt/-C: Prompt for the 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* *environment variables*
@@ -37,6 +37,8 @@ export LOTTERY_COUNT_PROMPT=false
## Use ## Use
### RootCmd
Run with the selection prompt without prompting for a count: Run with the selection prompt without prompting for a count:
```console ```console
@@ -58,13 +60,21 @@ lottery --count=4
Run a single draw directly: Run a single draw directly:
```console ```console
lottery -k=euromillions lottery --kind=euromillions
``` ```
Run multiple draws directly: Run multiple draws directly:
```console ```console
lottery -k=euromillions -c=3 lottery --kind=euromillions --count=3
```
### ListCmd
List the available lotteries:
```console
lottery list
``` ```
## Special Thanks ## Special Thanks