MCPcopy Index your code
hub / github.com/jetify-com/devbox / runRemoveCmd

Function runRemoveCmd

internal/boxcli/rm.go:33–44  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string, flags removeCmdFlags)

Source from the content-addressed store, hash-verified

31}
32
33func runRemoveCmd(cmd *cobra.Command, args []string, flags removeCmdFlags) error {
34 box, err := devbox.Open(&devopt.Opts{
35 Dir: flags.config.path,
36 Environment: flags.config.environment,
37 Stderr: cmd.ErrOrStderr(),
38 })
39 if err != nil {
40 return errors.WithStack(err)
41 }
42
43 return box.Remove(cmd.Context(), args...)
44}

Callers 1

removeCmdFunction · 0.85

Calls 2

OpenFunction · 0.92
RemoveMethod · 0.45

Tested by

no test coverage detected