diff --git a/pkg/cmd/extensions/command.go b/pkg/cmd/extensions/command.go index f764e22e5..29c4d1fb4 100644 --- a/pkg/cmd/extensions/command.go +++ b/pkg/cmd/extensions/command.go @@ -121,7 +121,12 @@ func NewCmdExtensions(f *cmdutil.Factory) *cobra.Command { Short: "Remove an installed extension", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { - return m.Remove(args[0]) + if err := m.Remove(args[0]); err != nil { + return err + } + cs := io.ColorScheme() + fmt.Fprintf(io.Out, "%s Removed extension %s\n", cs.SuccessIcon(), args[0]) + return nil }, }, ) diff --git a/pkg/cmd/extensions/command_test.go b/pkg/cmd/extensions/command_test.go index 7bf0b4429..58ece3740 100644 --- a/pkg/cmd/extensions/command_test.go +++ b/pkg/cmd/extensions/command_test.go @@ -102,6 +102,7 @@ func TestNewCmdExtensions(t *testing.T) { assert.Equal(t, "hello", calls[0].Name) } }, + wantStdout: "✓ Removed extension hello\n", }, }