From 40aa73ce2974c73947b363e2b1a393c89c67ffb0 Mon Sep 17 00:00:00 2001 From: Jeremy Levy Date: Thu, 2 Jun 2022 14:53:27 +0200 Subject: [PATCH] Add version flag in root command --- internal/cmd/root.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/cmd/root.go b/internal/cmd/root.go index 0abafed..5b6741a 100644 --- a/internal/cmd/root.go +++ b/internal/cmd/root.go @@ -62,6 +62,8 @@ From there, the most common workflow is: }, TraverseChildren: true, + + Version: "v0.1.0", } // Execute adds all child commands to the root command and sets flags appropriately.