git_workflow/output/
style.rs1const RED: &str = "\x1b[0;31m";
5const GREEN: &str = "\x1b[0;32m";
6const YELLOW: &str = "\x1b[0;33m";
7const BLUE: &str = "\x1b[0;34m";
8const BOLD: &str = "\x1b[1m";
9const RESET: &str = "\x1b[0m";
10
11pub fn info(msg: &str) {
13 println!("{BLUE}ℹ{RESET} {msg}");
14}
15
16pub fn success(msg: &str) {
18 println!("{GREEN}✓{RESET} {msg}");
19}
20
21pub fn warn(msg: &str) {
23 println!("{YELLOW}⚠{RESET} {msg}");
24}
25
26pub fn error(msg: &str) {
28 eprintln!("{RED}✗{RESET} {msg}");
29}
30
31pub fn action(msg: &str) {
33 println!("{BOLD}→{RESET} {msg}");
34}
35
36pub fn bold(text: &str) -> String {
38 format!("{BOLD}{text}{RESET}")
39}
40
41pub fn separator() {
43 println!("━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━");
44}
45
46pub fn ready(message: &str, branch: &str) {
48 println!();
49 separator();
50 println!("{GREEN}{BOLD}{message}{RESET} on {BOLD}{branch}{RESET}");
51}
52
53pub fn hints(lines: &[&str]) {
55 println!();
56 println!("{BOLD}Next:{RESET}");
57 for line in lines {
58 println!(" {line}");
59 }
60}