Skip to content

Commit 99df1ec

Browse files
committed
Added get_step_prefix()
1 parent 777f63d commit 99df1ec

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/console.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,10 @@ pub fn print_significant(prefix: impl Into<String>, message: impl Into<String>)
184184
println!("{} {}", Style::new().fg(Cyan).bold().paint(format!("> {}:", prefix.into())), message.into())
185185
}
186186

187+
pub fn get_step_prefix() -> String {
188+
Style::new().fg(Blue).bold().paint(">>").to_string()
189+
}
190+
187191
pub fn print_step(message: impl Into<String>) {
188-
let prefix = Style::new().fg(Blue).bold().paint(">>");
189-
println!("{} {}", prefix, message.into())
192+
println!("{} {}", get_step_prefix(), message.into())
190193
}

0 commit comments

Comments
 (0)