Skip to content

Commit

Permalink
chore(deps): bump the cargo group group with 1 update
Browse files Browse the repository at this point in the history
Bumps the cargo group group with 1 update: [mio](https://github.com/tokio-rs/mio).

Updates `mio` from 0.8.10 to 0.8.11
- [Release notes](https://github.com/tokio-rs/mio/releases)
- [Changelog](https://github.com/tokio-rs/mio/blob/master/CHANGELOG.md)
- [Commits](tokio-rs/mio@v0.8.10...v0.8.11)

---
updated-dependencies:
- dependency-name: mio
  dependency-type: indirect
  dependency-group: cargo-security-group
...

Signed-off-by: dependabot[bot] <[email protected]>

squash me baby
  • Loading branch information
dependabot[bot] authored and nezutero committed Aug 13, 2024
1 parent 92e9b34 commit be0d71c
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 16 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "waifu4me"
authors = ["kenjitheman <btwdesu@gmail.com>"]
authors = ["nezutero <nezutero@gmail.com>"]
description = "A CLI tool that allows you to interact with the waifu.pics API from the comfort of your terminal."
repository = "https://github.com/kenjitheman/waifu4me"
repository = "https://github.com/nezutero/waifu4me"
license = "MIT"
version = "0.2.0"
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 kenjitheman
Copyright (c) 2024 nezutero

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
52 changes: 42 additions & 10 deletions src/cli.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
use crate::{
fetcher::{fetch_many_images, fetch_single_image},
vars::{BASE_URL, BASE_URL_MANY},
};
use clap::{value_t, App, Arg};
use std::error::Error;
use console::style;
use crate::{fetcher::{fetch_many_images, fetch_single_image}, vars::{BASE_URL, BASE_URL_MANY}};
use std::error::Error;

pub fn cli() -> Result<(), Box<dyn Error>> {
let matches = App::new("waifu4me")
Expand All @@ -25,14 +28,43 @@ pub fn cli() -> Result<(), Box<dyn Error>> {
.long("category")
.value_name("CATEGORY")
.help("Specify the category of the waifu to fetch.\n->")
.possible_values(&[
"For SFW:", "waifu",
"nekoshinobu", "megumin", "bully", "cuddle",
"cry", "hug", "awoo", "kiss", "lick", "pat", "smug",
"yeet", "blush", "smile","wave", "highfive", "handhold",
"nom", "bite", "glomp", "bonk", "slap", "kill", "kick",
"happy", "wink", "poke", "dance", "cringe",
"\nFor NSFW:", "waifu", "neko", "trap", "blowjob"
.possible_values(&[
"For SFW:",
"waifu",
"nekoshinobu",
"megumin",
"bully",
"cuddle",
"cry",
"hug",
"awoo",
"kiss",
"lick",
"pat",
"smug",
"yeet",
"blush",
"smile",
"wave",
"highfive",
"handhold",
"nom",
"bite",
"glomp",
"bonk",
"slap",
"kill",
"kick",
"happy",
"wink",
"poke",
"dance",
"cringe",
"\nFor NSFW:",
"waifu",
"neko",
"trap",
"blowjob",
])
.takes_value(true)
.required(true)
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use waifu4me::cli::cli;
use console::style;
use waifu4me::cli::cli;

fn main() {
match cli() {
Expand Down

0 comments on commit be0d71c

Please sign in to comment.