farmbot v6.4.1 Farmbot.CeleryScript.AST.Node behaviour View Source
CeleryScript Node.
Link to this section Summary
Functions
Allow a list of args
Rebuild the args and body into an AST struct
Used with data manipulation nodes
Link to this section Functions
Allow a list of args.
Rebuild the args and body into an AST struct.
Used with data manipulation nodes.
Link to this section Callbacks
Link to this callback
decode_args(map)
View Source
decode_args(map()) :: {:ok, Farmbot.CeleryScript.AST.args()} | {:error, term()}
Decode and validate arguments.
Link to this callback
execute(arg0, arg1, arg2)
View Source
execute( Farmbot.CeleryScript.AST.args(), Farmbot.CeleryScript.AST.body(), Macro.Env.t() ) :: {:ok, Farmbot.CeleryScript.AST.t()} | {:ok, Macro.Env.t()} | {:error, Macro.Env.t(), term()}
Execute a node