Files
spellbook/internal/controllers/cli/rm.go
T
abelith 281d7d76d4 chore
- minor refactor
2026-08-08 17:18:34 +05:00

19 lines
335 B
Go

package cli
import "github.com/spf13/cobra"
func NewRmCommand(app Application) *cobra.Command {
cmd := &cobra.Command{
Use: "rm [spell_name]",
Short: "Delete spell",
Long: "WIP",
RunE: func(cmd *cobra.Command, args []string) error {
ctx := cmd.Context()
return app.DeleteSpell(ctx, args[0])
},
}
return cmd
}