summaryrefslogtreecommitdiff
path: root/internal/cli/version.go
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-04-03 08:39:32 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-04-03 08:39:32 +0000
commit5aa6a15ffdf68a8dbe12eb0fdfff93deafb9da10 (patch)
tree31c6a3617b2bb10814dca4b9db5a5a46ce2ba3c5 /internal/cli/version.go
parent2461fcf03ed2a49c7ac4aaed77fdde1aa01177c4 (diff)
fix: remove drain-lock circuit breaker that halted all executions after 3 consecutive failures
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/cli/version.go')
-rw-r--r--internal/cli/version.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/internal/cli/version.go b/internal/cli/version.go
new file mode 100644
index 0000000..789416a
--- /dev/null
+++ b/internal/cli/version.go
@@ -0,0 +1,18 @@
+package cli
+
+import (
+ "fmt"
+
+ "github.com/thepeterstone/claudomator/internal/version"
+ "github.com/spf13/cobra"
+)
+
+func newVersionCmd() *cobra.Command {
+ return &cobra.Command{
+ Use: "version",
+ Short: "Show the version of claudomator",
+ Run: func(cmd *cobra.Command, args []string) {
+ fmt.Printf("claudomator version %s\n", version.Version())
+ },
+ }
+}