tiagolr / dconsole

Haxe game-like console that provides runtime acess to methods, variables and more.
MIT License
169 stars 16 forks source link

Allow to registerCommands #31

Closed tiagolr closed 10 years ago

tiagolr commented 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)

ianharrigan commented 10 years ago

+1 for this... it would be a great feature...

tiagolr commented 10 years ago

Done, coming soon.