Compare commits
2 commits
f769a65a6d
...
9c03142153
Author | SHA1 | Date | |
---|---|---|---|
9c03142153 | |||
031bd39e16 |
2 changed files with 73 additions and 19 deletions
85
src/help.rs
85
src/help.rs
|
@ -28,33 +28,33 @@ pub fn list_text() {
|
||||||
|
|
||||||
flag list:
|
flag list:
|
||||||
agender agender pride flag
|
agender agender pride flag
|
||||||
aro, aromantic aromantic pride flag
|
aromantic aromantic pride flag
|
||||||
aroace aromantic-asexual pride flag
|
aroace aromantic-asexual pride flag
|
||||||
ace, asexual asexual pride flag
|
asexual asexual pride flag
|
||||||
bigender bigender pride flag
|
bigender bigender pride flag
|
||||||
bi, bisexual bisexual pride flag
|
bisexual bisexual pride flag
|
||||||
gay, mlm gay men pride flag
|
gay gay men pride flag
|
||||||
genderfluid genderfluid pride flag
|
genderfluid genderfluid pride flag
|
||||||
gender-nonconforming gender nonconforming pride flag
|
gender-nonconforming gender nonconforming pride flag
|
||||||
genderqueer genderqueer pride flag
|
genderqueer genderqueer pride flag
|
||||||
gendervoid gendervoid pride flag
|
gendervoid gendervoid pride flag
|
||||||
lesbian lesbian pride flag
|
lesbian lesbian pride flag
|
||||||
multigender multigender pride flag
|
multigender multigender pride flag
|
||||||
nb, nonbinary nonbinary pride flag
|
nonbinary nonbinary pride flag
|
||||||
pan, pansexual pansexual pride flag
|
pansexual pansexual pride flag
|
||||||
pride, rainbow six-color rainbow flag
|
rainbow six-color rainbow flag
|
||||||
progress progress arrow rainbow flag
|
progress progress arrow rainbow flag
|
||||||
trans, transgender transgender pride flag");
|
transgender transgender pride flag");
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn flag_help(flag: &str) {
|
pub fn flag_help(flag: &str) {
|
||||||
match flag {
|
match flag {
|
||||||
"pride" | "rainbow"
|
"pride" | "rainbow" | "-"
|
||||||
=> {
|
=> {
|
||||||
println!("The ubiquitous 1979 6-color rainbow pride flag, representing the larger queer community.
|
println!("The ubiquitous 1979 6-color rainbow pride flag, representing the larger queer community.
|
||||||
|
|
||||||
names:
|
names:
|
||||||
'pride', 'rainbow'
|
'pride', 'rainbow', '-'
|
||||||
|
|
||||||
variants:
|
variants:
|
||||||
8-color Gilbert Baker's original 1978 flag with 8 stripes
|
8-color Gilbert Baker's original 1978 flag with 8 stripes
|
||||||
|
@ -63,6 +63,8 @@ variants:
|
||||||
philadelphia The 2017 Philadelphia Pride flag with black and brown stripes
|
philadelphia The 2017 Philadelphia Pride flag with black and brown stripes
|
||||||
progress The 2018 Progess rainbow pride flag designed by Daniel Quasar");
|
progress The 2018 Progess rainbow pride flag designed by Daniel Quasar");
|
||||||
},
|
},
|
||||||
|
"progress"
|
||||||
|
=> { println!("Daniel Quasar's 2018 Progress rainbow pride flag.\n\nnames:\n 'progress'"); }
|
||||||
|
|
||||||
"transgender" | "trans"
|
"transgender" | "trans"
|
||||||
=> {
|
=> {
|
||||||
|
@ -72,9 +74,47 @@ names:
|
||||||
'transgender', 'trans'");
|
'transgender', 'trans'");
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// alphabetical below this point
|
||||||
|
|
||||||
|
"aromantic" | "aro"
|
||||||
|
=> { println!("The aromantic pride flag.\n\nnames:\n 'aromantic', 'aro'"); }
|
||||||
|
"asexaul" | "ace"
|
||||||
|
=> { println!("The asexual pride flag.\n\nnames:\n 'asexual', 'ace'"); }
|
||||||
|
"aroace" | "aromantic-asexual"
|
||||||
|
=> {
|
||||||
|
println!("The aromantic-asexual pride flag.
|
||||||
|
|
||||||
|
names:
|
||||||
|
'aroace', 'aromantic-asexual'
|
||||||
|
|
||||||
|
notes:
|
||||||
|
Currently only displays in terminals 20 lines or taller.");
|
||||||
|
},
|
||||||
|
|
||||||
|
"bisexual" | "bi"
|
||||||
|
=> {
|
||||||
|
println!("The bisexual flag designed by Michael Page in 1998.
|
||||||
|
|
||||||
|
names:
|
||||||
|
'bisexual', 'bi'");
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
"gay" | "mlm"
|
||||||
|
=> {
|
||||||
|
println!("The 7-stripe gay men pride flag designed by @gayflagblog on tumblr in 2019.
|
||||||
|
|
||||||
|
names:
|
||||||
|
'gay', 'mlm'");
|
||||||
|
},
|
||||||
|
|
||||||
|
"gender-nonconforming" | "gendernonconforming" | "gnc"
|
||||||
|
=> { println!("The gender-nonconforming pride flag.\n\nnames:\n 'gender-nonconforming', 'gendernonconforming', 'gnc'"); },
|
||||||
|
|
||||||
|
|
||||||
"lesbian"
|
"lesbian"
|
||||||
=> {
|
=> {
|
||||||
println!("Emily Gwen's 2018 5-stripe lesbian flag.
|
println!("The 5-stripe lesbian flag designed by Emily Gwen in 2018.
|
||||||
|
|
||||||
names:
|
names:
|
||||||
'lesbian'
|
'lesbian'
|
||||||
|
@ -82,11 +122,28 @@ names:
|
||||||
variants:
|
variants:
|
||||||
7-color 7-stripe flag, also designed in 2018 by Emily Gwen");
|
7-color 7-stripe flag, also designed in 2018 by Emily Gwen");
|
||||||
},
|
},
|
||||||
"progress"
|
|
||||||
=> { println!("Daniel Quasar's 2018 Progress rainbow pride flag.\n\nnames:\n 'progress'"); }
|
|
||||||
|
"nonbinary" | "nb"
|
||||||
|
=> {
|
||||||
|
println!("The nonbinary pride flag designed by Kyle Rowan in 2014.
|
||||||
|
|
||||||
|
names:
|
||||||
|
'nonbinary', 'nb'");
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
"pansexual" | "pan"
|
||||||
|
=> {
|
||||||
|
println!("The pansexual pride flag designed by Jasper V around 2010
|
||||||
|
|
||||||
|
names:
|
||||||
|
'pansexual', 'pan'");
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
_
|
_
|
||||||
=> help_text()
|
=> { help_text(); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,11 +6,8 @@ mod color;
|
||||||
mod complex;
|
mod complex;
|
||||||
mod draw;
|
mod draw;
|
||||||
mod flag;
|
mod flag;
|
||||||
<<<<<<< HEAD
|
|
||||||
mod help;
|
mod help;
|
||||||
=======
|
|
||||||
mod util;
|
mod util;
|
||||||
>>>>>>> main
|
|
||||||
mod variant;
|
mod variant;
|
||||||
|
|
||||||
use crate::flag::Flag;
|
use crate::flag::Flag;
|
||||||
|
@ -137,9 +134,9 @@ fn main() {
|
||||||
// => complex::polyamorous(),
|
// => complex::polyamorous(),
|
||||||
|
|
||||||
Some("progress")
|
Some("progress")
|
||||||
=> flag::progress(),
|
=> complex::progress(small),
|
||||||
|
|
||||||
_ => { help_text(); exit(1) }
|
_ => { help::help_text(); exit(1) }
|
||||||
};
|
};
|
||||||
|
|
||||||
flag.draw(!small);
|
flag.draw(!small);
|
||||||
|
|
Loading…
Reference in a new issue