summaryrefslogtreecommitdiff
path: root/internal/cli/version.go
blob: 789416a55d0e17f7f51396774c9804c9a1679800 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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())
		},
	}
}