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

Function newCreateCmd

16-CLI/cmd/create.go:11–18  ·  view source on GitHub ↗
(categoryDb database.Category)

Source from the content-addressed store, hash-verified

9)
10
11func newCreateCmd(categoryDb database.Category) *cobra.Command {
12 return &cobra.Command{
13 Use: "create",
14 Short: "Create a new category",
15 Long: `Create a new category`,
16 RunE: runCreate(categoryDb),
17 }
18}
19
20func runCreate(categoryDb database.Category) RunEFunc {
21 return func(cmd *cobra.Command, args []string) error {

Callers 1

initFunction · 0.85

Calls 1

runCreateFunction · 0.85

Tested by

no test coverage detected