From a20ea1714713facb4b3f5a82bf8d306c9fce6fbb Mon Sep 17 00:00:00 2001 From: nate smith Date: Fri, 12 Nov 2021 12:29:53 -0600 Subject: [PATCH] print success for installing extension --- pkg/cmd/extension/command.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkg/cmd/extension/command.go b/pkg/cmd/extension/command.go index bc3f0dab4..510c2e032 100644 --- a/pkg/cmd/extension/command.go +++ b/pkg/cmd/extension/command.go @@ -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 {