diff options
| author | Paul Buetow <paul@buetow.org> | 2025-06-23 17:13:45 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-06-23 17:13:45 +0300 |
| commit | 97e0151ba6a260195ced76ab69d3e3bd58ba68fc (patch) | |
| tree | cf158f895aa353ba9a6308358f4c333924bcfa14 /cmd | |
Initial gitsyncer implementation with version support
- 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 <noreply@anthropic.com>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/gitsyncer/main.go | 25 |
1 files changed, 25 insertions, 0 deletions
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 |
