diff --git a/client/cmd/root.go b/client/cmd/root.go index 0bacc9e..9260389 100644 --- a/client/cmd/root.go +++ b/client/cmd/root.go @@ -6,6 +6,7 @@ package cmd import ( "os" + "github.com/ddworken/hishtory/client/lib" "github.com/spf13/cobra" ) @@ -28,4 +29,5 @@ func init() { rootCmd.AddGroup(&cobra.Group{ID: GROUP_ID_QUERYING, Title: "History Searching"}) rootCmd.AddGroup(&cobra.Group{ID: GROUP_ID_MANAGEMENT, Title: "History Management"}) rootCmd.AddGroup(&cobra.Group{ID: GROUP_ID_CONFIG, Title: "Configuration"}) + rootCmd.Version = "v0." + lib.Version } diff --git a/hishtory.go b/hishtory.go index c218966..243adf8 100644 --- a/hishtory.go +++ b/hishtory.go @@ -13,7 +13,5 @@ func main() { /* Remaining things: * Support exclusions in searches -* Figure out how to hide certain things from the help doc -* Figure out how to reorder the docs * Acutally migrate saveHistoryEntry to cobra */