2023-11-30 02:09:55 -05:00
|
|
|
use crate::{BuiltInFunction, Map, Result, Value};
|
2023-11-28 17:54:17 -05:00
|
|
|
|
|
|
|
pub struct Output;
|
|
|
|
|
|
|
|
impl BuiltInFunction for Output {
|
|
|
|
fn name(&self) -> &'static str {
|
|
|
|
"output"
|
|
|
|
}
|
|
|
|
|
2023-11-30 02:09:55 -05:00
|
|
|
fn run(&self, arguments: &[Value], _context: &Map) -> Result<Value> {
|
2023-11-28 17:54:17 -05:00
|
|
|
for argument in arguments {
|
|
|
|
println!("{argument}");
|
|
|
|
}
|
|
|
|
|
|
|
|
Ok(Value::Empty)
|
|
|
|
}
|
|
|
|
}
|