From b20fc93b55976d9ec59739ac8e408338ba4d6f98 Mon Sep 17 00:00:00 2001 From: comfysage <67917529+comfysage@users.noreply.github.com> Date: Mon, 10 Jun 2024 21:31:51 +0200 Subject: [PATCH] feat: add `kittysay::print` function to wrap the `kittysay::generate` fn --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 50737a7..6fb8cd5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -111,3 +111,7 @@ pub fn generate(message: &str, format_opts: &FormatOptions) -> String { chars.arrow, ) } + +pub fn print(message: &str, format_opts: FormatOptions) -> String { + format!("{}{}", generate(message, &format_opts), KITTY) +}