diff --git a/Cargo.lock b/Cargo.lock index 3fdc104..37cc877 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1217,9 +1217,9 @@ dependencies = [ [[package]] name = "mio" -version = "0.8.10" +version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f3d0b296e374a4e6f3c7b0a1f5a51d748a0d34c85e7dc48fc3fa9a87657fe09" +checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" dependencies = [ "libc", "wasi", diff --git a/Cargo.toml b/Cargo.toml index eeaf657..7e5bf8e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "waifu4me" -authors = ["kenjitheman "] +authors = ["nezutero "] 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" diff --git a/LICENSE b/LICENSE index 314985b..6b7bd7a 100644 --- a/LICENSE +++ b/LICENSE @@ -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 diff --git a/src/cli.rs b/src/cli.rs index 5c67100..dea699b 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -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> { let matches = App::new("waifu4me") @@ -25,14 +28,43 @@ pub fn cli() -> Result<(), Box> { .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) diff --git a/src/main.rs b/src/main.rs index 7c577d0..1a1533a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,5 @@ -use waifu4me::cli::cli; use console::style; +use waifu4me::cli::cli; fn main() { match cli() {