add basic example to docs

This commit is contained in:
Daylin Morgan 2025-01-07 16:31:35 -06:00
parent 0d2cbc51f9
commit 5020199fd1
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -1,5 +1,30 @@
##[
# HwylCli
## example program:
```nim
import std/[strutils]
import hywlterm/hwylcli
hwylCli:
name "example"
flags:
count:
? "# of times"
- n
input:
? "content"
- i
run:
echo (input & " ").repeat(count)
```
```
$ example -n 2 --input "testing"
> testing testing
```
]##
import std/[