From eee11e0b0dd1fc3c44685f50c1636c902eac16ce Mon Sep 17 00:00:00 2001 From: mrfluffy <53239525+mrfluffy-dev@users.noreply.github.com> Date: Thu, 14 Jul 2022 01:24:03 +0100 Subject: [PATCH 1/3] Update README.org --- README.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.org b/README.org index 4a31e33..a6cc710 100644 --- a/README.org +++ b/README.org @@ -4,7 +4,7 @@ 1. [[#Why-use-kami][Why use kami]] 2. [[#Dependencies][Dependencies]] 3. [[#Install][Install]] - - [[#Linux--Mac][Linux/mac]] + - [[#LinuxMac][Linux/mac]] - [[#Windows][Windows]] 4. [[#Honorable-mentions][Honorable mentions]] * Why use kami From e4f08797277d4feb9058137d8e7c7493ae866f1d Mon Sep 17 00:00:00 2001 From: mrfluffy <53239525+mrfluffy-dev@users.noreply.github.com> Date: Thu, 14 Jul 2022 01:54:16 +0100 Subject: [PATCH 2/3] Fixed spelling mistakes --- README.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.org b/README.org index a6cc710..ea29777 100644 --- a/README.org +++ b/README.org @@ -8,7 +8,7 @@ - [[#Windows][Windows]] 4. [[#Honorable-mentions][Honorable mentions]] * Why use kami -well its a fast and easy way to watch anime and read light novels right i your terminal no need to open a browser. +well its a fast and easy way to watch anime and read light novels right in your terminal no need to open a browser. Also rust is fast as fuck boiiiii. * Dependencies 1. [[https://github.com/sharkdp/bat][bat]] From f05dfa57d4c717514c39da81f64076a955f952ec Mon Sep 17 00:00:00 2001 From: justchokingaround Date: Mon, 18 Jul 2022 03:58:45 +0200 Subject: [PATCH 3/3] refactor: improved file hierarchy --- src/{anime.rs => anime/mod.rs} | 0 src/{helpers.rs => helpers/mod.rs} | 0 src/{ln.rs => ln/mod.rs} | 0 src/main.rs | 28 ++++++++++++++-------------- 4 files changed, 14 insertions(+), 14 deletions(-) rename src/{anime.rs => anime/mod.rs} (100%) rename src/{helpers.rs => helpers/mod.rs} (100%) rename src/{ln.rs => ln/mod.rs} (100%) diff --git a/src/anime.rs b/src/anime/mod.rs similarity index 100% rename from src/anime.rs rename to src/anime/mod.rs diff --git a/src/helpers.rs b/src/helpers/mod.rs similarity index 100% rename from src/helpers.rs rename to src/helpers/mod.rs diff --git a/src/ln.rs b/src/ln/mod.rs similarity index 100% rename from src/ln.rs rename to src/ln/mod.rs diff --git a/src/main.rs b/src/main.rs index c64603e..c0afbe3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,21 +1,21 @@ -use std::fs::File; -use std::io::Write; - -use crate::anime::scraper::{anime_ep_range, anime_link, anime_names}; -use crate::ln::menu::chapter_selector; -use crate::ln::open_text::open_bat; -use crate::ln::scraper::get_full_text; -use crate::{ - anime::player::open_video, - helpers::take_input::{int_input, string_input, u16_input}, - ln::search::search_ln, -}; -use colored::Colorize; -use ln::scraper::get_ln_next_page; mod anime; mod helpers; mod ln; +use std::fs::File; +use std::io::Write; + +use colored::Colorize; +use ln::scraper::get_ln_next_page; +use ln::search::search_ln; + +use crate::anime::{ + player::open_video, + scraper::{anime_ep_range, anime_link, anime_names}, +}; +use crate::helpers::take_input::{int_input, string_input, u16_input}; +use crate::ln::{menu::chapter_selector, open_text::open_bat, scraper::get_full_text}; + fn main() { let mut _arg = String::new(); if std::env::args().len() > 1 {