duckscriptsdk 0.1.8

The duckscript SDK.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod end;
mod forin;
mod function;
mod ifelse;

use duckscript::types::command::Commands;
use duckscript::types::error::ScriptError;

pub(crate) fn load(commands: &mut Commands, package: &str) -> Result<(), ScriptError> {
    commands.set(end::create())?;

    forin::load(commands, package)?;
    function::load(commands, package)?;
    ifelse::load(commands, package)?;

    Ok(())
}