canonical/multipass

Fix spinner for non-interactive use

Open

#1,541 创建于 2020年5月15日

在 GitHub 查看
 (9 评论) (0 反应) (0 负责人)C++ (6,956 star) (634 fork)batch import
enhancementhelp wantedlow hanging fruitmedium

描述

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.

贡献者指南