feat(cli): implemented CoC flag

Idk why I even included this, but then again, it is probably not bad to
be very explicit about what is a pledge.

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
This commit is contained in:
Christina Sørensen 2023-07-03 11:02:55 +02:00
parent 414334009a
commit 2872f56aac
Signed by: cafkafk
GPG key ID: CDDC792F655251ED
4 changed files with 12 additions and 4 deletions

View file

@ -12,9 +12,9 @@
- [X] commit with edit works
- [X] Repo Flags Finished
- [X] Optional Fields
- [ ] Subcommands
- [-] Subcommands
- [ ] Quiet flag
- [ ] Do something about coc flag
- [-] Do something about coc flag
- [ ] UX
- [ ] Change failure emotes
- [ ] Flag for disabling emotes

View file

@ -61,7 +61,7 @@ fn main() {
match &args {
args if args.license => println!("{}", utils::strings::INTERACTIVE_LICENSE),
args if args.warranty => println!("{}", utils::strings::INTERACTIVE_WARRANTY),
args if args.code_of_conduct => unimplemented!(),
args if args.code_of_conduct => println!("{}", utils::strings::INTERACTIVE_COC),
_ => (),
}
match &mut args.command {

View file

@ -1,4 +1,5 @@
categories:
empty: {}
stuff:
flags: []
repos:
@ -43,7 +44,6 @@ categories:
flags:
- Clone
- Push
empty: {}
links:
- name: gg
rx: /home/ces/.config/gg

View file

@ -46,6 +46,14 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
";
pub const INTERACTIVE_COC: &str = "\
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of
experience, nationality, personal appearance, race, religion, or sexual identity
and orientation. For more, see http://contributor-covenant.org/version/1/4";
/// Contains the message for quick commit subcommand
pub const QUICK_COMMIT: &str = "git: quick commit";