duckscriptsdk 0.11.1

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

use crate::utils::pckg;
use duckscript::types::command::Commands;
use duckscript::types::error::ScriptError;

static PACKAGE: &str = "zip";

pub(crate) fn load(commands: &mut Commands, parent: &str) -> Result<(), ScriptError> {
    let package = pckg::concat(parent, PACKAGE);

    commands.set(unzip::create(&package))?;
    commands.set(zip::create(&package))?;

    Ok(())
}