diff options
| author | Paul Buetow <paul@buetow.org> | 2025-06-25 22:38:07 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-06-25 22:38:07 +0300 |
| commit | 4cc90ab5b92e0723a0cb3132b707a6dc58ae050e (patch) | |
| tree | 0cfa059b7611b25669a44879cc5ee5a16ecf7f6c /cmd | |
initial commit
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/timr/main.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cmd/timr/main.go b/cmd/timr/main.go new file mode 100644 index 0000000..fb28618 --- /dev/null +++ b/cmd/timr/main.go @@ -0,0 +1,19 @@ +package main + +import ( + "flag" + "fmt" + "os" + + "codeberg.org/snonux/timr/internal/version" +) + +func main() { + versionFlag := flag.Bool("version", false, "Print version and exit") + flag.Parse() + + if *versionFlag { + fmt.Println(version.Version) + os.Exit(0) + } +} |
