Add progress indicator when installing an extension (#8411)
This commit is contained in:
parent
08fb744229
commit
6eb650185b
1 changed files with 5 additions and 1 deletions
|
|
@ -347,7 +347,11 @@ func NewCmdExtension(f *cmdutil.Factory) *cobra.Command {
|
|||
return err
|
||||
}
|
||||
|
||||
if err := m.Install(repo, pinFlag); err != nil {
|
||||
io.StartProgressIndicator()
|
||||
err = m.Install(repo, pinFlag)
|
||||
io.StopProgressIndicator()
|
||||
|
||||
if err != nil {
|
||||
if errors.Is(err, releaseNotFoundErr) {
|
||||
return fmt.Errorf("%s Could not find a release of %s for %s",
|
||||
cs.FailureIcon(), args[0], cs.Cyan(pinFlag))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue