@@ -36,11 +36,13 @@ var (
3636 currentlyInstalledVersion * string
3737)
3838
39+ var GROUP_ID_INSTALL string = "group_id_install"
40+
3941var installCmd = & cobra.Command {
40- Use : "install" ,
41- Hidden : true ,
42- Short : "Copy this binary to ~/.hishtory/ and configure your shell to use it for recording your shell history" ,
43- Args : cobra .MaximumNArgs (1 ),
42+ Use : "install" ,
43+ Short : "Copy this binary to ~/.hishtory/ and configure your shell to use it for recording your shell history" ,
44+ GroupID : GROUP_ID_INSTALL ,
45+ Args : cobra .MaximumNArgs (1 ),
4446 Run : func (cmd * cobra.Command , args []string ) {
4547 secretKey := ""
4648 if len (args ) > 0 {
@@ -72,7 +74,7 @@ var installCmd = &cobra.Command{
7274var initCmd = & cobra.Command {
7375 Use : "init" ,
7476 Short : "Re-initialize hiSHtory with a specified secret key" ,
75- GroupID : GROUP_ID_CONFIG ,
77+ GroupID : GROUP_ID_INSTALL ,
7678 Args : cobra .MaximumNArgs (1 ),
7779 Run : func (cmd * cobra.Command , args []string ) {
7880 db , err := hctx .OpenLocalSqliteDb ()
@@ -107,8 +109,9 @@ var initCmd = &cobra.Command{
107109}
108110
109111var uninstallCmd = & cobra.Command {
110- Use : "uninstall" ,
111- Short : "Completely uninstall hiSHtory and remove your shell history" ,
112+ Use : "uninstall" ,
113+ Short : "Completely uninstall hiSHtory and remove your shell history" ,
114+ GroupID : GROUP_ID_INSTALL ,
112115 Run : func (cmd * cobra.Command , args []string ) {
113116 ctx := hctx .MakeContext ()
114117 fmt .Printf ("Are you sure you want to uninstall hiSHtory and delete all locally saved history data [y/N]" )
0 commit comments