mirror of
https://github.com/ddworken/hishtory.git
synced 2025-02-22 21:41:01 +01:00
Add version to cobra help page
This commit is contained in:
parent
27bbe97cb2
commit
6ef9bb00d5
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user