Open afbjorklund opened 1 year ago
One thing that I noticed afterwards, was that the download progressbar didn't output any URL outside the log.
So should add that, as a separate line. When not showing the log, and actually having to download something.
verbose
INFO[0000] Using the existing instance "default"
INFO[0000] Hint: To create another instance, run the following command: limactl start --name=NAME template://default
INFO[0000] Attempting to download the nerdctl archive from "https://github.com/containerd/nerdctl/releases/download/v1.1.0/nerdctl-full-1.1.0-linux-amd64.tar.gz" digest="sha256:5440c7b3af63df2ad2c98e185e06a27b4a21eea334b05408e84f8502251d9459"
18.72 MiB / 224.27 MiB [--->__________________________________] 8.35% 5.68 MiB/s
silent
https://github.com/containerd/nerdctl/releases/download/v1.1.0/nerdctl-full-1.1.0-linux-amd64.tar.gz
18.72 MiB / 224.27 MiB [--->__________________________________] 8.35% 5.68 MiB/s
Made a small cosmetic change, so that the messages all fit within 100 characters: 2e030822e939f67f124d004ee41bf3847ee86836
Starting "default"
Waiting 1 / 8 [--->________________________] "ssh" (essential 1/5)
Waiting 2 / 8 [------>_____________________] "user session is ready for ssh" (essential 2/5)
Waiting 3 / 8 [---------->_________________] "sshfs binary to be installed" (essential 3/5)
Waiting 4 / 8 [------------->______________] "fuse to \"allow_other\" as user" (essential 4/5)
Waiting 5 / 8 [----------------->__________] "the guest agent to be running" (essential 5/5)
Waiting 6 / 8 [-------------------->_______] "systemd must be available" (optional 1/2)
Waiting 7 / 8 [------------------------>___] "containerd binaries to be installed" (optional 2/2)
Waiting 8 / 8 [----------------------------] "boot scripts must have finished" (final 1/1)
READY.
Description
Currently, the
limactl start
defaults to dumping the log with the INFO level to the console.Turning off the logging means that only the final message (if any), was showing to the user.
I was experimenting with a less verbose mode, that only showed the major progress steps...
There were only two events in the start, Booting and Running, so I wanted to add requirements.
Booting:
INFO[0000] SSH Local Port: 60022
Starting "default"
Running:
INFO[0028] READY. Run
limato open the shell.
READY.
The log also has some internal info, like mounts and forwards.
Counted the total, and added a progress bar:
Found it less distracting, if the old steps remained.
By default, the new step information replaces the old.