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 hmr;
11mod logger;
12mod mode;
13mod server;
14
15use log::SetLoggerError;
16use std::collections::HashMap;
17pub use {build::*, error::*, fmt::*, hmr::*, logger::*, mode::*, server::*};
18
19use std::{
20    ffi,
21    fmt::Arguments,
22    io,
23    net::{IpAddr, Ipv4Addr},
24    path::{Component, Path, PathBuf},
25    process::{Output, Stdio},
26    slice::Iter,
27    sync::{Arc, OnceLock},
28    time::Duration,
29};
30
31use {
32    clap::Parser,
33    color_output::*,
34    hyperlane::*,
35    ignore::gitignore::{Gitignore, GitignoreBuilder},
36    lombok_macros::*,
37    notify::{Config, Event, RecommendedWatcher, RecursiveMode, Watcher},
38    qrcode::{QrCode, render::unicode::Dense1x2},
39    serde::Serialize,
40    tokio::{
41        fs::{
42            ReadDir, canonicalize, create_dir_all, metadata, read, read_dir, read_to_string,
43            remove_dir_all, remove_file, write,
44        },
45        process::Command,
46        spawn,
47        sync::{
48            RwLock, RwLockWriteGuard, broadcast,
49            mpsc::{Receiver, Sender, channel},
50        },
51        time::{Interval, interval, sleep},
52    },
53};