refactor: unify core actions and Ex command aliases

This commit is contained in:
2026-10-10 21:57:33 +02:00
parent 4e9378816e
commit 3f05287d79
9 changed files with 536 additions and 203 deletions
+3 -1
View File
@@ -124,7 +124,9 @@ module Vamp
# @return [String]
def external_command(command)
name = Vamp.string!(command, "binding command")
raise TypeError, "use config.core for built-in actions" if name.start_with?("core.")
if name.start_with?("core.") || Vamp.builtin_command?(name)
raise TypeError, "use config.core for built-in actions"
end
name
end