From 1a3d748690ca1dc917df82f7c6954bd3a5506525 Mon Sep 17 00:00:00 2001 From: Muhammad Hewedy Date: Fri, 21 Aug 2020 05:10:29 +0300 Subject: [PATCH] show progress bar while converting vagrant image to vermin format (ova) --- vagrant/process_image.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vagrant/process_image.go b/vagrant/process_image.go index 8e4c60e..6a8d8cd 100644 --- a/vagrant/process_image.go +++ b/vagrant/process_image.go @@ -1,6 +1,7 @@ package vagrant import ( + "github.com/mhewedy/vermin/progress" "io/ioutil" "os" "path" @@ -10,6 +11,9 @@ import ( func ProcessImage(imagePath string) error { + stop := progress.Show("Convert Vagrant image into Vermin format", false) + defer stop() + imageDir := path.Dir(imagePath) if err := gunzipVagrantBox(imagePath, imageDir); err != nil {