X Tutup
Skip to content

Commit a20ea17

Browse files
author
nate smith
committed
print success for installing extension
1 parent dae77fd commit a20ea17

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pkg/cmd/extension/command.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,15 @@ func NewCmdExtension(f *cmdutil.Factory) *cobra.Command {
106106
return err
107107
}
108108

109-
return m.Install(repo)
109+
if err := m.Install(repo); err != nil {
110+
return err
111+
}
112+
113+
if io.IsStdoutTTY() {
114+
cs := io.ColorScheme()
115+
fmt.Fprintf(io.Out, "%s Installed extension %s\n", cs.SuccessIcon(), args[0])
116+
}
117+
return nil
110118
},
111119
},
112120
func() *cobra.Command {

0 commit comments

Comments
 (0)
X Tutup