summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorLevi Durfee <levi.durfee@gmail.com>2026-01-07 13:01:55 -0500
committerLevi Durfee <levi.durfee@gmail.com>2026-01-07 13:02:37 -0500
commitde1db90a04360ae99e0f93c3fca01e1e7713699e (patch)
tree554ae3506492d2d40c311bd398d27187c179d4e4 /cmd
parentdcad5434ca9eb6eb92cfc440bfb20a49252e110e (diff)
Add version to urfave/cli setup using goreleaser
Diffstat (limited to 'cmd')
-rw-r--r--cmd/goaes/main.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/cmd/goaes/main.go b/cmd/goaes/main.go
index 913317d..df89eed 100644
--- a/cmd/goaes/main.go
+++ b/cmd/goaes/main.go
@@ -9,10 +9,15 @@ import (
"github.com/urfave/cli/v3"
)
+var (
+ version = "dev"
+)
+
func main() {
cmd := &cli.Command{
- Name: "goaes",
- Usage: "Simple AES encryption built with Go",
+ Name: "goaes",
+ Usage: "Simple AES encryption built with Go",
+ Version: version,
Action: func(ctx context.Context, cmd *cli.Command) error {
return cli.DefaultShowRootCommandHelp(cmd)
},