Compare commits
2 commits
3b7bc08ff0
...
dd7adca3d0
Author | SHA1 | Date | |
---|---|---|---|
dd7adca3d0 | |||
b60ad4bb72 |
3 changed files with 20 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "pride"
|
||||
version = "0.1.4"
|
||||
version = "0.1.5"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
|
11
src/flag.rs
11
src/flag.rs
|
@ -62,6 +62,17 @@ pub fn bisexual() -> Colors {
|
|||
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 {
|
||||
let pink = rgb(0xFF75A2);
|
||||
let violet = rgb(0xBE18D6);
|
||||
|
|
11
src/main.rs
11
src/main.rs
|
@ -38,7 +38,8 @@ fn main() {
|
|||
let subcommand = args.subcommand().unwrap();
|
||||
|
||||
let colors: Colors = match subcommand.as_deref() {
|
||||
Some("pride" | "gay")
|
||||
Some("pride")
|
||||
| None
|
||||
=> {
|
||||
let variant = args.subcommand().unwrap_or(None);
|
||||
match variant.as_deref() {
|
||||
|
@ -70,6 +71,9 @@ fn main() {
|
|||
Some("bisexual" | "bi")
|
||||
=> flag::bisexual(),
|
||||
|
||||
Some("gay" | "mlm")
|
||||
=> flag::gay(),
|
||||
|
||||
Some("genderfluid")
|
||||
=> flag::genderfluid(),
|
||||
|
||||
|
@ -104,7 +108,7 @@ fn help_text() {
|
|||
println!("Valerie Wolfe <sleeplessval@gmail.com>");
|
||||
println!("Show pride flags in the terminal.\n");
|
||||
|
||||
println!("usage: pride [flags] <name>\n");
|
||||
println!("usage: pride [flags] [name]\n");
|
||||
|
||||
println!("args:");
|
||||
println!(" <name> The pride flag to display\n");
|
||||
|
@ -127,7 +131,7 @@ fn list_text() {
|
|||
println!(" ace, asexual asexual pride flag");
|
||||
println!(" bigender bigender 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!(" genderqueer genderqueer pride flag");
|
||||
println!(" gendervoid gendervoid pride flag");
|
||||
|
@ -135,6 +139,7 @@ fn list_text() {
|
|||
println!(" multigender multigender pride flag");
|
||||
println!(" nb, nonbinary nonbinary pride flag");
|
||||
println!(" pan, pansexual pansexual pride flag");
|
||||
println!(" pride six-color rainbow flag");
|
||||
// println!(" progress progress arrow flag");
|
||||
println!(" trans, transgender transgender pride flag");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue