diff --git a/src/app/commands/serve.rs b/src/app/commands/serve.rs index bec5418..51b2a0c 100644 --- a/src/app/commands/serve.rs +++ b/src/app/commands/serve.rs @@ -1,20 +1,18 @@ use colored::Colorize; use live_server::listen; use notify::{ - event::{self, ModifyKind}, + event::ModifyKind, Config, Event, EventKind, RecommendedWatcher, RecursiveMode, Watcher, }; use std::{env, path::Path}; use tokio::sync::mpsc::{channel, Receiver}; -use crate::app::{ - builder::{ +use crate::app::builder::{ asciidoctor::{AsciiDoctorDocsBuilder, AsciiDoctorSlideBuilder}, Builder, - }, - fs_util, }; + pub async fn serve() { tokio::join!(watch_and_build(), start_server());