(categoryDb database.Category)
| 9 | ) |
| 10 | |
| 11 | func 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 | |
| 20 | func runCreate(categoryDb database.Category) RunEFunc { |
| 21 | return func(cmd *cobra.Command, args []string) error { |