MCPcopy Create free account
hub / github.com/devfullcycle/goexpert / init

Function init

16-CLI/cmd/create.go:32–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30}
31
32func init() {
33 createCmd := newCreateCmd(GetCategoryDB(GetDb()))
34 categoryCmd.AddCommand(createCmd)
35 createCmd.Flags().StringP("name", "n", "", "Name of the category")
36 createCmd.Flags().StringP("description", "d", "", "Description of the category")
37 createCmd.MarkFlagsRequiredTogether("name", "description")
38}

Callers

nothing calls this directly

Calls 3

newCreateCmdFunction · 0.85
GetCategoryDBFunction · 0.85
GetDbFunction · 0.85

Tested by

no test coverage detected