Skip to content

Commit

Permalink
feat: add kittysay::print function to wrap the kittysay::generate
Browse files Browse the repository at this point in the history
… fn (#22)
  • Loading branch information
comfysage authored Jun 10, 2024
1 parent 02f4738 commit e5fa8c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit e5fa8c5

Please sign in to comment.