;imp: demo: help updates

This commit is contained in:
Simon Michael 2023-03-17 00:53:30 -10:00
parent bbb58c3804
commit 8b2efe3c33

View File

@ -1,26 +1,27 @@
## demo ## demo
Play small demos of hledger usage in the terminal. Play demos of hledger usage in the terminal, if asciinema is installed.
_FLAGS _FLAGS
Run this command with no argument to list the demos. Run this command with no argument to list the demos.
To play a demo, write its number or a prefix or substring of its title. To play a demo, write its number or a prefix or substring of its title.
asciinema must be installed. Tips:
Make your terminal window large enough to see the demo clearly.
During playback, several keys are available: During playback, several keys are available:
- SPACE pause/unpause SPACE to pause/unpause, . to step forward (while paused),
- . step forward (while paused) CTRL-c quit.
- CTRL-c quit early
asciinema options can be added following a double dash, such as asciinema options can be added following a double dash, such as
`-s` (adjust speed) and `-i` (limit idle time). `-s N` to adjust speed and `-i SECS` to limit pauses.
Run `asciinema -h` to list these. Run `asciinema -h` to list these options.
Examples: Examples:
```shell ```shell
$ hledger demo # list available demos $ hledger demo # list available demos
$ hledger demo 1 # play the first demo $ hledger demo 1 # play the first demo
$ hledger demo install -s5 -i.5 # play the install demo at 5x speed, $ hledger demo install -- -s5 -i.5 # play the install demo at 5x speed,
# with pauses limited to half a second. # with pauses limited to half a second
``` ```