feat(cli): ✨ /stylize: stl alias for the stylize fn
This commit is contained in:
parent
0c713daa9c
commit
686dcbbc1f
@ -1,7 +1,7 @@
|
||||
mod style;
|
||||
mod stylizer;
|
||||
|
||||
pub use stylizer::{stylize, Stylize};
|
||||
pub use stylizer::{stylize, stl, Stylize};
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
||||
@ -235,3 +235,15 @@ pub fn stylize<S: AsRef<str>>(s: S, instructions: &str) -> String {
|
||||
|
||||
formatted
|
||||
}
|
||||
|
||||
// alias for stylize: stl
|
||||
|
||||
/// 🧉 » stl fn
|
||||
/// --
|
||||
///
|
||||
/// Stylizes a string with optional ANSI color and attributes.
|
||||
///
|
||||
/// This is an alias for the `stylize` function.
|
||||
pub fn stl<S: AsRef<str>>(s: S, instructions: &str) -> String {
|
||||
stylize(s, instructions)
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user