mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-05 15:32:53 +00:00
24 lines
745 B
Go
24 lines
745 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var logCmd = &cobra.Command{
|
|
Use: "log",
|
|
Short: "Show commit logs",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
logCmd.Flags().String("decorate", "", "decorate options")
|
|
logCmd.Flags().String("decorate-refs-exclude", "", "do not decorate refs that match <pattern>")
|
|
logCmd.Flags().String("decorate-refs", "", "only decorate refs that match <pattern>")
|
|
logCmd.Flags().StringP("L", "L", "", "Process line range n,m in file, counting from 1")
|
|
logCmd.Flags().BoolP("quiet", "q", false, "suppress diff output")
|
|
logCmd.Flags().Bool("source", false, "show source")
|
|
logCmd.Flags().Bool("use-mailmap", false, "Use mail map file")
|
|
rootCmd.AddCommand(logCmd)
|
|
}
|