Created
December 19, 2022 07:39
-
-
Save onimsha/4ab776ac12f526e2aae0f21c62cdec8c to your computer and use it in GitHub Desktop.
wukong_text_color
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use owo_colors::OwoColorize; | |
| fn main() { | |
| // id: 1, slug: e-mail | |
| println!( | |
| "My email is {}!", | |
| "[email protected]".bright_blue() | |
| ); | |
| // id: 2, slug: github-handle | |
| println!("My github handle is {}!", "@darkhorse".bright_green()); | |
| // id: 3, slug: short-commit-hash | |
| println!( | |
| "My short commit has is either {} or {}", | |
| "a907bbf".bright_yellow(), | |
| "commit: a907bbf".bright_yellow() | |
| ); | |
| // id: 4, slug: long-commit-hash | |
| println!( | |
| "My long commit hash is either {} or {}", | |
| "b3c176fa7be2f6dfd2440088f4b6ae4ee0e3ae35".bright_yellow(), | |
| "commit: b3c176fa7be2f6dfd2440088f4b6ae4ee0e3ae35".bright_yellow() | |
| ); | |
| // id: 5, slug: pull-request-number | |
| println!("My Pull Request number is {}", "#3212".cyan()); | |
| // id: 6, slug: jira-ticket-number | |
| println!("My Jira ticket number is {}", "MVBASE-1232".cyan()); | |
| // id: 7, slug: build-artifact-name | |
| println!("My build artifact name is {}", "build-123".default_color()); | |
| // id: 8, slug: application-name | |
| println!("My application name is {}", "mv-platform".bright_green()); | |
| // id: 9, slug: generic-tex | |
| println!("{}", "This is a generic text".default_color()); | |
| // id: 10, slug: status-ok | |
| println!( | |
| "A OK status is either {} or {} or {}", | |
| "SUCCESS".green().bold(), | |
| "[SUCCESS]".green().bold(), | |
| "[SUCCEEDED]".green().bold() | |
| ); | |
| // id: 11, slug: status-fail | |
| println!( | |
| "A Fail status is either {} or {} or {} or {}", | |
| "TERMINAL".red().bold(), | |
| "FAILURE".red().bold(), | |
| "[TERMINAL]".red().bold(), | |
| "[FAILURE]".red().bold() | |
| ); | |
| // id: 12, slug: status-abort | |
| println!( | |
| "An Abort status is either {} or {} or {}", | |
| "ABORT".black().bold(), | |
| "CANCELED".black().bold(), | |
| "CANCELLED".black().bold() | |
| ); | |
| // id: 13, slug: status-running | |
| println!( | |
| "A Fail status is either {} or {} or {} or {}", | |
| "RUNNING".yellow().bold(), | |
| "BUILDING".yellow().bold(), | |
| "[RUNNING]".yellow().bold(), | |
| "[BUILDING]".yellow().bold() | |
| ); | |
| // id: 14, slug: version | |
| println!("Currently showing the {} deployments", "Blue".blue().bold()); | |
| println!("Currently showing the {} deployments", "Green".green().bold()); | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment