Skip to content

Commit 7880a4d

Browse files
committed
Remove plain output formatting option and related code
1 parent 477a14b commit 7880a4d

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

cmd/commit.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,19 +203,13 @@ var commitCmd = &cobra.Command{
203203
os.Exit(0)
204204
}
205205

206-
if plain {
207-
fmt.Println(msg)
208-
} else {
209-
fmt.Println("Commit message:", msg)
210-
}
211206
},
212207
}
213208

214209
func init() {
215210
RootCmd.AddCommand(commitCmd)
216211

217212
commitCmd.Flags().BoolVarP(&conventional, "conventional", "c", false, "use conventional commits")
218-
commitCmd.Flags().BoolVarP(&plain, "plain", "p", false, "no output formatting")
219213
commitCmd.Flags().BoolVarP(&auto, "auto", "a", false, "automatically add all and commit with the generated message")
220214
commitCmd.Flags().BoolVar(&push, "push", false, "automatically push to the current branch")
221215
commitCmd.Flags().BoolVarP(&verbose, "verbose", "v", false, "verbose output")

cmd/vars.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ var markdownMode bool
2424
var overwriteOriginal bool
2525

2626
var conventional bool // use conventional commits
27-
var plain bool
2827
var auto bool
2928
var push bool
3029

0 commit comments

Comments
 (0)