use crate::api::Client; use crate::api::models::{Rescue, Linux, Vnc, Windows, Plesk, Cpanel, Boot, Server, SshKey}; use rhai::{Engine, Scope}; pub mod server; pub mod ssh_keys; pub mod boot; pub mod printing; pub fn setup_engine(client: Client) -> (Engine, Scope<'static>) { let mut engine = Engine::new(); let mut scope = Scope::new(); engine.build_type::(); engine.build_type::(); engine.build_type::(); engine.build_type::(); engine.build_type::(); engine.build_type::(); engine.build_type::(); engine.build_type::(); engine.build_type::(); server::register(&mut engine); ssh_keys::register(&mut engine); boot::register(&mut engine); printing::register(&mut engine); scope.push("hetzner", client); (engine, scope) }