Commit 250501d

Karn Wong <[email protected]>
2024-07-26 07:23:52
chore: move misc Cmd to root
1 parent d219f7c
cmd/root.go
@@ -5,7 +5,6 @@ import (
 
 	"github.com/kahnwong/swissknife/cmd/generate"
 	"github.com/kahnwong/swissknife/cmd/get"
-	"github.com/kahnwong/swissknife/cmd/misc"
 	"github.com/spf13/cobra"
 )
 
@@ -31,8 +30,8 @@ func init() {
 	rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
 	rootCmd.AddCommand(get.Cmd)
 	rootCmd.AddCommand(generate.Cmd)
-	rootCmd.AddCommand(misc.SpeedTestCmd)
-	rootCmd.AddCommand(misc.ShouldIDeployTodayCmd)
-	rootCmd.AddCommand(misc.TimerCmd)
-	rootCmd.AddCommand(misc.StopwatchCmd)
+	rootCmd.AddCommand(SpeedTestCmd)
+	rootCmd.AddCommand(ShouldIDeployTodayCmd)
+	rootCmd.AddCommand(TimerCmd)
+	rootCmd.AddCommand(StopwatchCmd)
 }
cmd/misc/shouldideploytoday.go → cmd/shouldideploytoday.go
@@ -1,4 +1,4 @@
-package misc
+package cmd
 
 import (
 	"encoding/json"
cmd/misc/shouldideploytoday_test.go → cmd/shouldideploytoday_test.go
@@ -1,4 +1,4 @@
-package misc
+package cmd
 
 import (
 	"reflect"
cmd/misc/speedtest.go → cmd/speedtest.go
@@ -1,4 +1,4 @@
-package misc
+package cmd
 
 import (
 	"fmt"
cmd/misc/stopwatch.go → cmd/stopwatch.go
@@ -1,5 +1,5 @@
 // from <https://github.com/charmbracelet/bubbletea/blob/master/examples/stopwatch/main.go>
-package misc
+package cmd
 
 import (
 	"fmt"
cmd/misc/timer.go → cmd/timer.go
@@ -1,5 +1,5 @@
 // modified from <https://github.com/maaslalani/pom/blob/main/main.go>
-package misc
+package cmd
 
 import (
 	"fmt"