Initial commit: gtea CLI tool

Go CLI that wraps the Gitea API and git to create repos, commit,
push, and pull without leaving the terminal.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-17 14:11:34 -04:00
commit b7ea167786
11 changed files with 404 additions and 0 deletions

17
cmd/pull.go Normal file
View File

@@ -0,0 +1,17 @@
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)
},
}