Helper Functions Plugin
Helper Functions are a way to extend the functionality of ScriptBee. They can be used to add custom functions that can be used in the scripts directly.
Manifest
An example can be seen below:
kind
: The type of pluginentryPoint
: The relative path to the DLL containing the implemented interfaces for the respective plugins.version
: The version of the plugin
Helper Function Interface
IHelperFunction.cs
public interface IHelperFunctions : IPlugin
{
Task OnLoadAsync(CancellationToken cancellationToken = default)
{
return Task.CompletedTask;
}
Task OnUnloadAsync(CancellationToken cancellationToken = default)
{
return Task.CompletedTask;
}
}
OnLoadAsync
: Called before the script is runOnUnloadAsync
: Called after the script is run
Example
ScriptBee has helper functions that deal with console output, csv files, json files and text files.
ScriptBee's default helper functions can be found here