diff --git a/main.go b/main.go index 3e57755fd5..f2f64cfbc0 100644 --- a/main.go +++ b/main.go @@ -6,7 +6,6 @@ import ( "github.com/spf13/cobra" "tidbyt.dev/pixlet/cmd" "tidbyt.dev/pixlet/cmd/community" - "tidbyt.dev/pixlet/cmd/private" ) var ( @@ -34,8 +33,6 @@ func init() { rootCmd.AddCommand(cmd.CheckCmd) rootCmd.AddCommand(cmd.SetAuthCmd) rootCmd.AddCommand(community.CommunityCmd) - rootCmd.AddCommand(private.PrivateCmd) - } func main() { diff --git a/main_nonjs.go b/main_nonjs.go index e987554157..2f82271f3a 100644 --- a/main_nonjs.go +++ b/main_nonjs.go @@ -3,9 +3,11 @@ package main import ( + "tidbyt.dev/pixlet/cmd" "tidbyt.dev/pixlet/cmd/private" ) func init() { - rootCmd.AddCommand(private.CreateCmd) + rootCmd.AddCommand(private.PrivateCmd) + rootCmd.AddCommand(cmd.CreateCmd) }