print success for installing extension
This commit is contained in:
parent
dae77fd398
commit
a20ea17147
1 changed files with 9 additions and 1 deletions
|
|
@ -106,7 +106,15 @@ func NewCmdExtension(f *cmdutil.Factory) *cobra.Command {
|
|||
return err
|
||||
}
|
||||
|
||||
return m.Install(repo)
|
||||
if err := m.Install(repo); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if io.IsStdoutTTY() {
|
||||
cs := io.ColorScheme()
|
||||
fmt.Fprintf(io.Out, "%s Installed extension %s\n", cs.SuccessIcon(), args[0])
|
||||
}
|
||||
return nil
|
||||
},
|
||||
},
|
||||
func() *cobra.Command {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue