diff --git a/cmd/a.go b/cmd/a.go index d145243833700875cef12dc60009d46ef97a5d88..254306bf32ace3276faab7442b301410b8dc2ffe 100644 --- a/cmd/a.go +++ b/cmd/a.go @@ -18,10 +18,6 @@ var aCmd = &cobra.Command{ RunE: runArchiveSession, } -func init() { - rootCmd.AddCommand(aCmd) -} - func runArchiveSession(cmd *cobra.Command, args []string) error { env, err := shared.Environment(cmd) if err != nil { diff --git a/cmd/m.go b/cmd/m.go index dea31ac19560c63c75f2ba6ae2c22ef21e219ea3..b6be89fe65d748bb9f9cb38cc4d6986a81325f6a 100644 --- a/cmd/m.go +++ b/cmd/m.go @@ -25,7 +25,3 @@ recent (top) to least recent (bottom).`, fmt.Println("[STUB] Launch interactive TUI to monitor session events in real-time") }, } - -func init() { - rootCmd.AddCommand(mCmd) -} diff --git a/cmd/p.go b/cmd/p.go index b1aba95e5f6036610795a48ca13609168274a92c..e5ee13096b4a2ce06d2f4649c059e6f196f5f091 100644 --- a/cmd/p.go +++ b/cmd/p.go @@ -16,10 +16,6 @@ var pCmd = &cobra.Command{ RunE: runPrintPlan, } -func init() { - rootCmd.AddCommand(pCmd) -} - func runPrintPlan(cmd *cobra.Command, args []string) error { env, err := shared.Environment(cmd) if err != nil { diff --git a/cmd/r.go b/cmd/r.go index 5f3ef9c8e4780a6ec3d8869c1c831134e5cb0ff0..737c611c1fecd95614de4e5a7d7d13de0b9e345c 100644 --- a/cmd/r.go +++ b/cmd/r.go @@ -18,17 +18,3 @@ var rCmd = &cobra.Command{ fmt.Println("[STUB] Resume interrupted session from database") }, } - -func init() { - rootCmd.AddCommand(rCmd) - - // Here you will define your flags and configuration settings. - - // Cobra supports Persistent Flags which will work for this command - // and all subcommands, e.g.: - // rCmd.PersistentFlags().String("foo", "", "A help for foo") - - // Cobra supports local flags which will only run when this command - // is called directly, e.g.: - // rCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") -} diff --git a/cmd/s.go b/cmd/s.go index d33f3f44142c39b0854203abdb156990fa11bdc0..6846d308c2ea61d919c4366f2e2b7daf354ec0cf 100644 --- a/cmd/s.go +++ b/cmd/s.go @@ -20,10 +20,6 @@ var sCmd = &cobra.Command{ RunE: runStartSession, } -func init() { - rootCmd.AddCommand(sCmd) -} - func runStartSession(cmd *cobra.Command, args []string) error { env, err := requireEnvironment() if err != nil {