Skip to content

Commit 415f865

Browse files
committed
add success message to give user feedback on the command
1 parent 19b2c0a commit 415f865

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

cli/cmd/channel_disable_semantic_versioning.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package cmd
22

33
import (
44
"errors"
5+
"fmt"
56
"github.com/spf13/cobra"
67
)
78

@@ -28,5 +29,8 @@ func (r *runners) channelDisableSemanticVersioning(cmd *cobra.Command, args []st
2829
return err
2930
}
3031

32+
fmt.Fprintf(r.w, "Semver successfully disabled for channel %s\n", chanID)
33+
r.w.Flush()
34+
3135
return nil
3236
}

cli/cmd/channel_enable_semantic_versioning.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package cmd
22

33
import (
44
"errors"
5+
"fmt"
56
"github.com/spf13/cobra"
67
)
78

@@ -28,5 +29,8 @@ func (r *runners) channelEnableSemanticVersioning(cmd *cobra.Command, args []str
2829
return err
2930
}
3031

32+
fmt.Fprintf(r.w, "Semver successfully enabled for channel %s\n", chanID)
33+
r.w.Flush()
34+
3135
return nil
3236
}

0 commit comments

Comments
 (0)