package cmd import ( "github.com/spf13/cobra" ) var pullCmd = &cobra.Command{ Use: "pull", Short: "Pull latest changes from Gitea", RunE: func(cmd *cobra.Command, args []string) error { branch, err := currentBranch() if err != nil { branch = "main" } return runGit(".", "pull", "origin", branch) }, }