Closed tiagolr closed 10 years ago
Registering functions is nice, but registering commands via code is also very useful to extend the console without changing its codebase.
GC.registerCommand(callbackFunction:Array->Void, alias:String, help:String)
Would register a "command processor" that is activated when alias is called from the console (the arguments are passed as parameters to the function callback)
+1 for this... it would be a great feature...
Done, coming soon.
Registering functions is nice, but registering commands via code is also very useful to extend the console without changing its codebase.
GC.registerCommand(callbackFunction:Array->Void, alias:String, help:String)
Would register a "command processor" that is activated when alias is called from the console (the arguments are passed as parameters to the function callback)