hx_plugins/api/mod.rs
1//! Steel API functions for hx plugins.
2//!
3//! All functions are registered under the `hx/` namespace.
4
5pub mod build;
6pub mod config;
7pub mod fs;
8pub mod output;
9pub mod project;
10pub mod shell;
11
12use crate::error::Result;
13use steel::steel_vm::engine::Engine;
14
15/// Register all hx API functions with the Steel engine.
16pub fn register_all(engine: &mut Engine) -> Result<()> {
17 project::register(engine)?;
18 shell::register(engine)?;
19 config::register(engine)?;
20 output::register(engine)?;
21 fs::register(engine)?;
22 build::register(engine)?;
23 Ok(())
24}