- command handlers
This commit is contained in:
abelith committed 2026-08-04 01:00:00 +05:00
1 parent 3673d318a1
commit 213562956c
6 files changed
+249 -1

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
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
}