Skip to content

Commit f9a1682

Browse files
committed
Commit message: Removed unused flags and added plain output option
1 parent faf3f28 commit f9a1682

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

cmd/commit.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,6 @@ var commitCmd = &cobra.Command{
4949
func init() {
5050
RootCmd.AddCommand(commitCmd)
5151

52-
// Here you will define your flags and configuration settings.
53-
54-
// Cobra supports Persistent Flags which will work for this command
55-
// and all subcommands, e.g.:
56-
// commitCmd.PersistentFlags().String("foo", "", "A help for foo")
57-
58-
// Cobra supports local flags which will only run when this command
59-
// is called directly, e.g.:
6052
commitCmd.Flags().BoolVarP(&conventional, "conventional", "c", false, "use conventional commits")
53+
commitCmd.Flags().BoolVarP(&plain, "plain", "p", false, "no output formatting")
6154
}

cmd/vars.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ var markdownMode bool
2121
var overwriteOriginal bool
2222

2323
var conventional bool // use conventional commits
24+
var plain bool
2425

2526
var log = l.NewWithOptions(os.Stderr, l.Options{
2627
Level: l.InfoLevel,

0 commit comments

Comments
 (0)