Compare commits

..

2 commits

3 changed files with 20 additions and 4 deletions

View file

@ -1,6 +1,6 @@
[package] [package]
name = "pride" name = "pride"
version = "0.1.4" version = "0.1.5"
edition = "2021" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

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");
} }