mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-05 15:32:53 +00:00
21 lines
560 B
Go
21 lines
560 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var commit_treeCmd = &cobra.Command{
|
|
Use: "commit-tree",
|
|
Short: "Create a new commit object",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
commit_treeCmd.Flags().StringP("F", "F", "", "read commit log message from file")
|
|
commit_treeCmd.Flags().StringP("m", "m", "", "commit message")
|
|
commit_treeCmd.Flags().StringP("p", "p", "", "id of a parent commit object")
|
|
commit_treeCmd.Flags().StringP("gpg-sign", "S", "", "GPG sign commit")
|
|
rootCmd.AddCommand(commit_treeCmd)
|
|
}
|