mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-30 19:58:30 +00:00
add configurable automatic admin command execution after startup
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
025afb61cb
commit
b2d8da489c
4 changed files with 56 additions and 2 deletions
|
@ -194,6 +194,12 @@ impl Console {
|
|||
}
|
||||
}
|
||||
|
||||
/// Standalone/static markdown printer.
|
||||
pub fn print(markdown: &str) {
|
||||
let output = configure_output(MadSkin::default_dark());
|
||||
output.print_text(markdown);
|
||||
}
|
||||
|
||||
fn configure_output(mut output: MadSkin) -> MadSkin {
|
||||
use termimad::{crossterm::style::Color, Alignment, CompoundStyle, LineStyle};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue