@@ -130,7 +130,7 @@ func (pc PluginChannels) Fetch(out io.Writer) PluginPackages {
130130
131131// Fetch retrieves all available PluginPackages from the given channel
132132func (pc PluginChannel ) Fetch (out io.Writer ) PluginPackages {
133- client := http.Client {
133+ client := http.Client {
134134 Timeout : 30 * time .Second ,
135135 }
136136 resp , err := client .Get (string (pc ))
@@ -153,7 +153,7 @@ func (pc PluginChannel) Fetch(out io.Writer) PluginPackages {
153153
154154// Fetch retrieves all available PluginPackages from the given repository
155155func (pr PluginRepository ) Fetch (out io.Writer ) PluginPackages {
156- client := http.Client {
156+ client := http.Client {
157157 Timeout : 30 * time .Second ,
158158 }
159159 resp , err := client .Get (string (pr ))
@@ -412,7 +412,7 @@ func GetInstalledPluginVersion(name string) string {
412412// DownloadAndInstall downloads and installs the given plugin and version
413413func (pv * PluginVersion ) DownloadAndInstall (out io.Writer ) error {
414414 fmt .Fprintf (out , "Downloading %q (%s) from %q\n " , pv .pack .Name , pv .Version , pv .Url )
415- client := http.Client {
415+ client := http.Client {
416416 Timeout : 30 * time .Second ,
417417 }
418418 resp , err := client .Get (pv .Url )
@@ -664,6 +664,7 @@ func UpdatePlugins(out io.Writer, plugins []string) {
664664func PluginCommand (out io.Writer , cmd string , args []string ) {
665665 switch cmd {
666666 case "install" :
667+ fmt .Fprintln (out , "Downloading plugin, please wait..." )
667668 installedVersions := GetInstalledVersions (false )
668669 for _ , plugin := range args {
669670 pp := GetAllPluginPackages (out ).Get (plugin )
@@ -712,6 +713,7 @@ func PluginCommand(out io.Writer, cmd string, args []string) {
712713 fmt .Fprintln (out , "No plugins removed" )
713714 }
714715 case "update" :
716+ fmt .Fprintln (out , "Updating plugins, please wait..." )
715717 UpdatePlugins (out , args )
716718 case "list" :
717719 plugins := GetInstalledVersions (false )
@@ -726,6 +728,7 @@ func PluginCommand(out io.Writer, cmd string, args []string) {
726728 }
727729 }
728730 case "search" :
731+ fmt .Fprintln (out , "Fetching plugins, please wait..." )
729732 plugins := SearchPlugin (out , args )
730733 fmt .Fprintln (out , len (plugins ), "plugins found" )
731734 for _ , p := range plugins {
@@ -734,6 +737,7 @@ func PluginCommand(out io.Writer, cmd string, args []string) {
734737 }
735738 fmt .Fprintln (out , "----------------" )
736739 case "available" :
740+ fmt .Fprintln (out , "Fetching plugins, please wait..." )
737741 packages := GetAllPluginPackages (out )
738742 fmt .Fprintln (out , "Available Plugins:" )
739743 for _ , pkg := range packages {
0 commit comments