Conkie icon indicating copy to clipboard operation
Conkie copied to clipboard

On demand instruction

Open Heziode opened this issue 7 years ago • 3 comments

Add support for « on demand » instructions, for exemple to execute custom command once.

Heziode avatar Apr 18 '17 20:04 Heziode

When you say 'on demand instructions' I assume you mean to execute some arbitrary code?

I'm guessing since this can already be done with JavaScript you mean to break out of the sandbox and run some command on the machine itself right?

hash-bang avatar Apr 19 '17 00:04 hash-bang

For exemple for execute one command like "ls" or "uname" or anything else. It's can be a also a software.

It's just for not execute this instruction periodically.

Also needed for music controller.

Heziode avatar Apr 19 '17 06:04 Heziode

Exemple :

I've one module test (conkie module), and have one « on demand » function called hello :

module.exports = {
    hello: function () {
        return 'Hello World';
    },
    register: function(finish, parentStats) {
        parentStats.test = {};
        parentStats.test.hello = hello;
        finish();
    },
};

I would like use something like this in client-side : scope.test.hello()

Heziode avatar Apr 19 '17 18:04 Heziode