refactor: unify core actions and Ex command aliases
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user