multipass
multipass copied to clipboard
Fix spinner for non-interactive use
Attempting to run non-interactive scripts that run multipass. Logs look like this:
Creating VMs...
Creating test-0 /
Configuring test-0 /-
Starting test-0 /-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\
Waiting for initialization to complete /-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|
Launched: test-0
Created VM test-0.
This could be resolved by disabling spinners when not running on a live terminal, or via switch.
Thanks @chornlgscout, we already modify some things when non-interactive, you're right we should also change how we're doing spinners in that case.