added mlm pride flag, made null subcommand display rainbow pride flag

This commit is contained in:
Valerie Wolfe 2023-06-26 11:07:34 -04:00
parent 3b7bc08ff0
commit b60ad4bb72
2 changed files with 19 additions and 3 deletions

View file

@ -62,6 +62,17 @@ pub fn bisexual() -> Colors {
vec![magenta, magenta, purple, blue, blue] vec![magenta, magenta, purple, blue, blue]
} }
pub fn gay() -> Colors {
let green1 = rgb(0x00906D);
let green2 = rgb(0x00D1A7);
let green3 = rgb(0x7EEBC1);
let blue1 = rgb(0x6CAEE8);
let blue2 = rgb(0x5543D3);
let blue3 = rgb(0x461280);
vec![green1, green2, green3, WHITE, blue1, blue2, blue3]
}
pub fn genderfluid() -> Colors { pub fn genderfluid() -> Colors {
let pink = rgb(0xFF75A2); let pink = rgb(0xFF75A2);
let violet = rgb(0xBE18D6); let violet = rgb(0xBE18D6);

View file

@ -38,7 +38,8 @@ fn main() {
let subcommand = args.subcommand().unwrap(); let subcommand = args.subcommand().unwrap();
let colors: Colors = match subcommand.as_deref() { let colors: Colors = match subcommand.as_deref() {
Some("pride" | "gay") Some("pride")
| None
=> { => {
let variant = args.subcommand().unwrap_or(None); let variant = args.subcommand().unwrap_or(None);
match variant.as_deref() { match variant.as_deref() {
@ -70,6 +71,9 @@ fn main() {
Some("bisexual" | "bi") Some("bisexual" | "bi")
=> flag::bisexual(), => flag::bisexual(),
Some("gay" | "mlm")
=> flag::gay(),
Some("genderfluid") Some("genderfluid")
=> flag::genderfluid(), => flag::genderfluid(),
@ -104,7 +108,7 @@ fn help_text() {
println!("Valerie Wolfe <sleeplessval@gmail.com>"); println!("Valerie Wolfe <sleeplessval@gmail.com>");
println!("Show pride flags in the terminal.\n"); println!("Show pride flags in the terminal.\n");
println!("usage: pride [flags] <name>\n"); println!("usage: pride [flags] [name]\n");
println!("args:"); println!("args:");
println!(" <name> The pride flag to display\n"); println!(" <name> The pride flag to display\n");
@ -127,7 +131,7 @@ fn list_text() {
println!(" ace, asexual asexual pride flag"); println!(" ace, asexual asexual pride flag");
println!(" bigender bigender pride flag"); println!(" bigender bigender pride flag");
println!(" bi, bisexual bisexual pride flag"); println!(" bi, bisexual bisexual pride flag");
println!(" gay, pride six-color rainbow flag"); println!(" gay, mlm gay men pride flag");
println!(" genderfluid genderfluid pride flag"); println!(" genderfluid genderfluid pride flag");
println!(" genderqueer genderqueer pride flag"); println!(" genderqueer genderqueer pride flag");
println!(" gendervoid gendervoid pride flag"); println!(" gendervoid gendervoid pride flag");
@ -135,6 +139,7 @@ fn list_text() {
println!(" multigender multigender pride flag"); println!(" multigender multigender pride flag");
println!(" nb, nonbinary nonbinary pride flag"); println!(" nb, nonbinary nonbinary pride flag");
println!(" pan, pansexual pansexual pride flag"); println!(" pan, pansexual pansexual pride flag");
println!(" pride six-color rainbow flag");
// println!(" progress progress arrow flag"); // println!(" progress progress arrow flag");
println!(" trans, transgender transgender pride flag"); println!(" trans, transgender transgender pride flag");
} }