Skip to content

Commit 846e165

Browse files
committed
local install
1 parent 704b240 commit 846e165

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pkg/command/plugin.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ func newInstallPluginCmd() *cobra.Command {
243243
return installPluginsForPluginGroup(cmd, args)
244244
}
245245

246+
pluginmanager.SetTotalPluginsToInstall(1)
246247
// Invoke install plugin from local source if local files are provided
247248
if local != "" {
248249
if len(args) == 0 {
@@ -256,6 +257,7 @@ func newInstallPluginCmd() *cobra.Command {
256257
return err
257258
}
258259
err = pluginmanager.InstallPluginsFromLocalSource(pluginName, version, getTarget(), local, false)
260+
pluginmanager.StopSpinner()
259261
if err != nil {
260262
return err
261263
}
@@ -276,7 +278,6 @@ func newInstallPluginCmd() *cobra.Command {
276278
return fmt.Errorf("the '%s' argument can only be used with the '--group' flag", cli.AllPlugins)
277279
}
278280

279-
pluginmanager.SetTotalPluginsToInstall(1)
280281
pluginVersion := version
281282
err = pluginmanager.InstallStandalonePlugin(pluginName, pluginVersion, getTarget())
282283
pluginmanager.StopSpinner()

0 commit comments

Comments
 (0)