Example #1
0
func main() {
	err := cmdrunner.Execute(cmd.NewWithSignoff("revert"))
	if err != nil {
		fmt.Println(err)
		os.Exit(1)
	}
}
Example #2
0
func main() {
	err := cmdrunner.Execute(
		cmd.New("merge"),
		cmd.NewWithSignoff("commit", "--amend", "--no-edit"))

	if err != nil {
		fmt.Println(err)
		os.Exit(1)
	}
}