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    net::{IpAddr, Ipv4Addr},
21    path::{Component, Path, PathBuf},
22    process::{Output, Stdio},
23    sync::{Arc, OnceLock},
24    time::Duration,
25};
26
27use {
28    clap::Parser,
29    color_output::*,
30    hyperlane::*,
31    ignore::gitignore::{Gitignore, GitignoreBuilder},
32    lombok_macros::*,
33    notify::{Config, Event, RecommendedWatcher, RecursiveMode, Watcher},
34    qrcode::{QrCode, render::unicode::Dense1x2},
35    serde::Serialize,
36    tokio::{
37        fs::{
38            ReadDir, canonicalize, create_dir_all, metadata, read, read_dir, read_to_string,
39            remove_dir_all, remove_file, write,
40        },
41        process::Command,
42        spawn,
43        sync::{
44            RwLock, RwLockWriteGuard, broadcast,
45            mpsc::{Receiver, Sender, channel},
46        },
47        time::{Interval, interval, sleep},
48    },
49};