package cmd

import (
	"github.com/spf13/cobra"
)

var pushCmd = &cobra.Command{
	Use:   "push",
	Short: "Push current branch to Gitea",
	RunE: func(cmd *cobra.Command, args []string) error {
		branch, err := currentBranch()
		if err != nil {
			branch = "main"
		}
		return runGit(".", "push", "-u", "origin", branch)
	},
}
