A small sandbox for spinning spinners in different directions.
A local version of briandowns/spinner
can be used for easy
modification. Prepare this with the following command:
git clone https://github.com/briandowns/spinner ../../briandowns/spinner
To run with the latest version, comment this line in go.mod
:
replace github.com/briandowns/spinner v1.23.0 => ../../briandowns/spinner
Build the branch and test any recent changes with the following commands:
$ make build
$ ./wait
For a fancier experience, flags can be used to try different cases. There's only one now:
# Capture termination signals while the spinner is active
$ ./wait --signal
Without a flag, the spinner will automatically spin after a moment.
More information on testing interrupts and signal behaviors is shared in
SIGNALS.md
.