From c1f8a20b2182f397ee7cd76edbda707f86ed6929 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Sun, 15 May 2022 23:51:45 +0200 Subject: [PATCH] Add a version command --- main.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.go b/main.go index ab55b19..cfe8f6a 100644 --- a/main.go +++ b/main.go @@ -81,6 +81,14 @@ func main() { return nil }, }, + { + Name: "version", + Usage: "Print the version", + Action: func(ctx *cli.Context) error { + cli.VersionPrinter(ctx) + return nil + }, + }, { Name: "daemon", Aliases: []string{"d"},