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

Function infoCmd

internal/boxcli/info.go:21–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19}
20
21func infoCmd() *cobra.Command {
22 flags := infoCmdFlags{}
23 command := &cobra.Command{
24 Use: "info <pkg>",
25 Short: "Display package info",
26 Args: cobra.ExactArgs(1),
27 PreRunE: ensureNixInstalled,
28 RunE: func(cmd *cobra.Command, args []string) error {
29 return infoCmdFunc(cmd, args[0], flags)
30 },
31 }
32
33 flags.config.register(command)
34 command.Flags().BoolVar(&flags.markdown, "markdown", false, "output in markdown format")
35 return command
36}
37
38func infoCmdFunc(cmd *cobra.Command, pkg string, flags infoCmdFlags) error {
39 box, err := devbox.Open(&devopt.Opts{

Callers 1

RootCmdFunction · 0.85

Calls 2

infoCmdFuncFunction · 0.85
registerMethod · 0.45

Tested by

no test coverage detected