mirror of
https://github.com/daveberrys/guh.git
synced 2026-11-29 00:46:45 +08:00
20 lines
357 B
Go
20 lines
357 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/daveberrys/guh/src/utils"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(diffCmd)
|
|
}
|
|
|
|
var diffCmd = &cobra.Command{
|
|
Use: "diff",
|
|
Short: "Show working tree changes",
|
|
Args: cobra.NoArgs,
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
return utils.RunGitSequence(false, []string{"diff"})
|
|
},
|
|
}
|