mirror of
https://github.com/edera-dev/sprout.git
synced 2025-12-19 22:30:17 +00:00
12 lines
406 B
Rust
12 lines
406 B
Rust
use crate::context::SproutContext;
|
|
use alloc::rc::Rc;
|
|
use anyhow::Result;
|
|
use edera_sprout_config::actions::print::PrintConfiguration;
|
|
use log::info;
|
|
|
|
/// Executes the print action with the specified `configuration` inside the provided `context`.
|
|
pub fn print(context: Rc<SproutContext>, configuration: &PrintConfiguration) -> Result<()> {
|
|
info!("{}", context.stamp(&configuration.text));
|
|
Ok(())
|
|
}
|