use crate::error::Result;
use std::collections::HashMap;
pub struct CliTemplate;
impl CliTemplate {
pub fn new() -> Self {
Self
}
pub fn render(&self, _variables: &HashMap<String, String>) -> Result<String> {
Ok(r#"//! CLI Tool wrapper for WebAssembly sandboxed module
//! This file was generated automatically by wasm-sandbox
use std::path::PathBuf;
fn main() {
println!("CLI wrapper placeholder - implement me!");
}
"#.to_string())
}
}
impl Default for CliTemplate {
fn default() -> Self {
Self::new()
}
}