Plugins
There is different ways to create a plugin:
- Pure functions, e.g shell and run
- Runner functions that takes three or four arguments and returns a function.
Pure functions
Most of the functions that Pine exports is standalone functions, e.g shell and run, so writing your own functions is easy. You can use build-it functions like the getConfig to receive the configuration object.
const echo = console.log;
export default {
example: () => {
echo('Foo');
},
};
Runner function
You can read more about runner functions here