Fix plugin install progress
package commands
import (
- "github.com/jfrog/jfrog-cli-core/v2/utils/config"
- commandsUtils "github.com/jfrog/jfrog-cli/plugins/commands/utils"
- clientUtils "github.com/jfrog/jfrog-client-go/utils"
"net/http"
"os"
"path/filepath"
"strings"
+ "github.com/jfrog/jfrog-cli-core/v2/utils/config"
+ commandsUtils "github.com/jfrog/jfrog-cli/plugins/commands/utils"
+ clientUtils "github.com/jfrog/jfrog-client-go/utils"
+
"github.com/jfrog/jfrog-cli-core/v2/utils/coreutils"
"github.com/jfrog/jfrog-cli/utils/cliutils"
logUtils "github.com/jfrog/jfrog-cli/utils/log"
@@ -174,6 +175,7 @@ func downloadPlugin(pluginsDir, pluginName, downloadUrl string, httpDetails http
return err
}
if progressMgr != nil {
+ progressMgr.InitProgressReaders()
progressMgr.IncGeneralProgressTotalBy(1)
defer logUtils.CloseLogFile(logFile)
defer progressMgr.Quit()
