Commit History

Autor SHA1 Mensaxe Data
  Serj Kalichev 0db777324b Change plugin API %!s(int64=11) %!d(string=hai) anos
  Stanislav Galabov a010cf7752 Use the new INI-like parser to get Lua scripts dir from XML %!s(int64=11) %!d(string=hai) anos
  Serj Kalichev b2182151d1 Fix lua LDFLAGS. Change plugin name to lua %!s(int64=11) %!d(string=hai) anos
  Serj Kalichev 397396080e Fix warnings in lua plugin build on linux %!s(int64=11) %!d(string=hai) anos
  Stanislav Galabov 54b74d8cc1 Use the new context API to get shell from context; Cleanup unneeded cast %!s(int64=11) %!d(string=hai) anos
  Stanislav Galabov a64420c178 Use memcpy instead of bcopy as it is possibly more portable %!s(int64=11) %!d(string=hai) anos
  Stanislav Galabov 013f60c901 Implement a simple trim function. Use trim to get only the config string without any leading/trailing whitespace %!s(int64=11) %!d(string=hai) anos
  Stanislav Galabov 9d981594ec Was too quick with last commit... Actually fix conflicts due to rebase %!s(int64=11) %!d(string=hai) anos
  Stanislav Galabov 7b83ec7f7e Resolve conflict caused by 'rebase' %!s(int64=11) %!d(string=hai) anos
  Stanislav Galabov 434a687559 Use plugin_fini; Use plugin's conf mechanism for defining the script dir instead of relying on global env vars (for the moment it's rudimentary and just uses the string provided by clish_plugin__get_conf() without doing any further parsing) %!s(int64=11) %!d(string=hai) anos
  Stanislav Galabov f861b3cd57 Rename some files. Stop using init hook - init Lua interpreter from within the plugin_init function. Register action handler as a sym instead of as a hook. Once we have plugin_fini ready I'll remove the fini hook as well. %!s(int64=11) %!d(string=hai) anos
  Stanislav Galabov 3fbc9fdd98 Initial import of Lua plugin. Currently clish_plugin_lua_la_LDFLAGS and clish_plugin_lua_la_CFLAGS need to be specified manually in plugins/lua/module.am in order to build successfully. Once built - set CLISH_PATH to xml-examples/lua and start klish. You'll have all the commands as in xml-examples/test interpreted by Lua and, in addition, commands test8 (calls a lua function defined in test.lua), eval (can evaluate any string parameter as a Lua chunk) and test9 (an alias for eval) %!s(int64=11) %!d(string=hai) anos
  Stanislav Galabov b9e9072034 Rename some files. Stop using init hook - init Lua interpreter from within the plugin_init function. Register action handler as a sym instead of as a hook. Once we have plugin_fini ready I'll remove the fini hook as well. %!s(int64=11) %!d(string=hai) anos
  Stanislav Galabov 79fe413202 Initial import of Lua plugin. Currently clish_plugin_lua_la_LDFLAGS and clish_plugin_lua_la_CFLAGS need to be specified manually in plugins/lua/module.am in order to build successfully. Once built - set CLISH_PATH to xml-examples/lua and start klish. You'll have all the commands as in xml-examples/test interpreted by Lua and, in addition, commands test8 (calls a lua function defined in test.lua), eval (can evaluate any string parameter as a Lua chunk) and test9 (an alias for eval) %!s(int64=11) %!d(string=hai) anos