From f2314c8e68d5ba7c1fdb720b538017a183ec950a Mon Sep 17 00:00:00 2001 From: Max K Date: Tue, 14 Dec 2021 19:02:18 -0800 Subject: [PATCH] Added version flag to wakie, which prints out app version. --- cmd/root.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 994e0d9..77577bd 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -25,9 +25,10 @@ var homeDir string // rootCmd represents the base command when called without any subcommands var rootCmd = &cobra.Command{ - Use: "wakie", - Short: "Wake-on-LAN utility", - Long: `Utility for sending Magic Packets for Wake-on-LAN, as well as managing an address book of computer MAC Addresses.`, + Version: "1.2.2", + Use: "wakie", + Short: "Wake-on-LAN utility", + Long: `Utility for sending Magic Packets for Wake-on-LAN, as well as managing an address book of computer MAC Addresses.`, Run: func(cmd *cobra.Command, args []string) { switch {