diff --git a/cmd/command.go b/cmd/command.go index 6048afc..c883384 100644 --- a/cmd/command.go +++ b/cmd/command.go @@ -75,6 +75,7 @@ func RegisterCommand(name string, cmd Command) error { if _, ok := commandRegistry[name]; ok { return fmt.Errorf("%s command is already registered") } + cmd.Name = name commandRegistry[name] = cmd return nil }