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

Function removeCmd

internal/boxcli/rm.go:17–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15}
16
17func removeCmd() *cobra.Command {
18 flags := removeCmdFlags{}
19 command := &cobra.Command{
20 Use: "rm <pkg>...",
21 Short: "Remove a package from your devbox",
22 Args: cobra.MinimumNArgs(1),
23 PreRunE: ensureNixInstalled,
24 RunE: func(cmd *cobra.Command, args []string) error {
25 return runRemoveCmd(cmd, args, flags)
26 },
27 }
28
29 flags.config.register(command)
30 return command
31}
32
33func runRemoveCmd(cmd *cobra.Command, args []string, flags removeCmdFlags) error {
34 box, err := devbox.Open(&devopt.Opts{

Callers 2

globalCmdFunction · 0.85
RootCmdFunction · 0.85

Calls 2

runRemoveCmdFunction · 0.85
registerMethod · 0.45

Tested by

no test coverage detected