Skip to content

zimeg/spinners

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spinners

A small sandbox for spinning spinners in different directions.

Setup

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

Running

Build the branch and test any recent changes with the following commands:

$ make build
$ ./wait

Flags

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.

Interrupts

More information on testing interrupts and signal behaviors is shared in SIGNALS.md.

About

right 'round, 'round, 'round

Resources

License

Stars

Watchers

Forks