* Add spinner.New test
Signed-off-by: Leandro López (inkel) <inkel.ar@gmail.com>
* Add spinner.Option type and spinner.WithSpinner option
Signed-off-by: Leandro López (inkel) <inkel.ar@gmail.com>
* Allow passing options in spinner.New
This doesn't break existing code as it uses variadic arguments, so
any existing code as the following should continue to work:
s := spinner.New()
s.spinner = spinner.Dot
This change allows for instead of those two lines, having a call:
s := spinner.New(spinner.WithSpinner(spinner.Dot))
Signed-off-by: Leandro López (inkel) <inkel.ar@gmail.com>
* Add spinner.WithX option for each spinner.Spinner
Signed-off-by: Leandro López (inkel) <inkel.ar@gmail.com>
* Refactor spinner tests
Signed-off-by: Leandro López (inkel) <inkel.ar@gmail.com>
* Add spinner.WithStyle option function
Signed-off-by: Leandro López (inkel) <inkel.ar@gmail.com>
* refactor: remove With... Spinner aliases
Co-authored-by: Maas Lalani <maas@lalani.dev>