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