From 97e0151ba6a260195ced76ab69d3e3bd58ba68fc Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 23 Jun 2025 17:13:45 +0300 Subject: Initial gitsyncer implementation with version support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Initialize Go module for github.com/paul/gitsyncer - Add version package with version info (v0.1.0) - Implement main.go with --version flag support - Create comprehensive Taskfile.yaml for build automation - Add CLAUDE.md with project documentation The binary can be built with 'task' or 'go build -o gitsyncer ./cmd/gitsyncer' 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- cmd/gitsyncer/main.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 cmd/gitsyncer/main.go (limited to 'cmd') diff --git a/cmd/gitsyncer/main.go b/cmd/gitsyncer/main.go new file mode 100644 index 0000000..3a38d32 --- /dev/null +++ b/cmd/gitsyncer/main.go @@ -0,0 +1,25 @@ +package main + +import ( + "flag" + "fmt" + "os" + + "github.com/paul/gitsyncer/internal/version" +) + +func main() { + var versionFlag bool + flag.BoolVar(&versionFlag, "version", false, "print version information") + flag.BoolVar(&versionFlag, "v", false, "print version information (short)") + flag.Parse() + + if versionFlag { + fmt.Println(version.GetVersion()) + os.Exit(0) + } + + // TODO: Implement main gitsyncer functionality + fmt.Println("gitsyncer - Git repository synchronization tool") + fmt.Println("Use --version to display version information") +} \ No newline at end of file -- cgit v1.2.3