File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,25 +8,24 @@ import (
88
99 "github.com/common-nighthawk/go-figure"
1010 "github.com/fatih/color"
11- "github.com/harshalranjhani/genie/internal/middleware"
1211 "github.com/spf13/cobra"
1312)
1413
1514var rootCmd = & cobra.Command {
1615 Use : "genie" ,
1716 Short : "genie is an AI powered CLI tool to help you with your daily tasks." ,
1817 Long : `genie is an AI powered CLI tool to help you with your daily tasks.` ,
19- PersistentPreRunE : func (cmd * cobra.Command , args []string ) error {
20- // Skip middleware checks for init and reset commands
21- if cmd .Name () == "init" || cmd .Name () == "reset" || cmd .Name () == "completion" {
22- return nil
23- }
18+ // PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
19+ // // Skip middleware checks for init and reset commands
20+ // if cmd.Name() == "init" || cmd.Name() == "reset" || cmd.Name() == "completion" {
21+ // return nil
22+ // }
2423
25- if err := middleware .CheckKeyringSetup (); err != nil {
26- return err
27- }
28- return nil
29- },
24+ // if err := middleware.CheckKeyringSetup(); err != nil {
25+ // return err
26+ // }
27+ // return nil
28+ // },
3029 // Run: func(cmd *cobra.Command, args []string) {
3130 // // Do Stuff Here
3231 // },
You can’t perform that action at this time.
0 commit comments