Skip to content

Commit 55db3c1

Browse files
committed
removed debug command "integrate test"
1 parent b7be16e commit 55db3c1

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

internal/boxcli/integrate.go

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ package boxcli
66
import (
77
"bytes"
88
"encoding/json"
9-
"fmt"
109
"os/exec"
1110

1211
"github.com/spf13/cobra"
@@ -32,7 +31,6 @@ func integrateCmd() *cobra.Command {
3231
},
3332
}
3433
command.AddCommand(integrateVSCodeCmd())
35-
command.AddCommand(integrateTestCmd())
3634
return command
3735
}
3836

@@ -51,38 +49,6 @@ func integrateVSCodeCmd() *cobra.Command {
5149
return command
5250
}
5351

54-
func integrateTestCmd() *cobra.Command {
55-
flags := &integrateCmdFlags{}
56-
command := &cobra.Command{
57-
Use: "test",
58-
Hidden: true,
59-
Short: "for test purposes",
60-
RunE: func(cmd *cobra.Command, args []string) error {
61-
return runIntegrateTestCmd(cmd, flags)
62-
},
63-
}
64-
flags.config.register(command)
65-
66-
return command
67-
}
68-
69-
func runIntegrateTestCmd(cmd *cobra.Command, flags *integrateCmdFlags) error {
70-
box, err := devbox.Open(&devopt.Opts{
71-
Dir: flags.config.path,
72-
Writer: cmd.OutOrStdout(),
73-
})
74-
if err != nil {
75-
return err
76-
}
77-
// Get env variables of a devbox shell
78-
envVars, err := box.PrintEnvVars(cmd.Context())
79-
if err != nil {
80-
return err
81-
}
82-
fmt.Println(envVars)
83-
return nil
84-
}
85-
8652
type parentMessage struct {
8753
ConfigDir string `json:"configDir"`
8854
}

0 commit comments

Comments
 (0)