Skip to main content

euv_cli/
lib.rs

1//! euv CLI
2//!
3//! The official CLI tool for the euv UI framework,
4//! providing run/build/fmt modes with hot reload and
5//! wasm-pack integration.
6
7mod build;
8mod error;
9mod fmt;
10mod logger;
11mod mode;
12mod server;
13
14pub use {build::*, error::*, fmt::*, logger::*, mode::*, server::*};
15
16use std::{
17    ffi,
18    fmt::Arguments,
19    io,
20    path::{Component, Path, PathBuf},
21    process::{Output, Stdio},
22    sync::{Arc, OnceLock},
23    time::Duration,
24};
25
26use {
27    clap::Parser,
28    color_output::*,
29    hyperlane::*,
30    ignore::gitignore::{Gitignore, GitignoreBuilder},
31    lombok_macros::*,
32    notify::{Config, Event, RecommendedWatcher, RecursiveMode, Watcher},
33    qrcode::{QrCode, render::unicode::Dense1x2},
34    serde::Serialize,
35    tokio::{
36        fs::{
37            ReadDir, canonicalize, create_dir_all, metadata, read, read_dir, read_to_string,
38            remove_dir_all, remove_file, write,
39        },
40        process::Command,
41        spawn,
42        sync::{
43            RwLock, RwLockWriteGuard, broadcast,
44            mpsc::{Receiver, Sender, channel},
45        },
46        time::{Interval, interval, sleep},
47    },
48};