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

Function infoCmdFunc

internal/boxcli/info.go:38–54  ·  view source on GitHub ↗
(cmd *cobra.Command, pkg string, flags infoCmdFlags)

Source from the content-addressed store, hash-verified

36}
37
38func infoCmdFunc(cmd *cobra.Command, pkg string, flags infoCmdFlags) error {
39 box, err := devbox.Open(&devopt.Opts{
40 Dir: flags.config.path,
41 Environment: flags.config.environment,
42 Stderr: cmd.ErrOrStderr(),
43 })
44 if err != nil {
45 return errors.WithStack(err)
46 }
47
48 info, err := box.Info(cmd.Context(), pkg, flags.markdown)
49 if err != nil {
50 return errors.WithStack(err)
51 }
52 fmt.Fprint(cmd.OutOrStdout(), info)
53 return nil
54}

Callers 1

infoCmdFunction · 0.85

Calls 2

OpenFunction · 0.92
InfoMethod · 0.45

Tested by

no test coverage detected