mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-15 10:25:40 +00:00
1f2517c731
This PR fundamentally restructures the EasyTier GUI, introducing support for service mode and remote mode, transforming it from a simple desktop application into a powerful network management terminal. This change allows users to persistently run the EasyTier core as a background service or remotely manage multiple EasyTier instances, greatly improving deployment flexibility and manageability.
36 lines
683 B
Rust
36 lines
683 B
Rust
#![allow(dead_code)]
|
|
|
|
use std::io;
|
|
|
|
use clap::Command;
|
|
use clap_complete::Generator;
|
|
|
|
mod arch;
|
|
mod gateway;
|
|
pub mod instance;
|
|
mod peer_center;
|
|
mod vpn_portal;
|
|
|
|
pub mod common;
|
|
pub mod connector;
|
|
pub mod core;
|
|
pub mod instance_manager;
|
|
pub mod launcher;
|
|
pub mod peers;
|
|
pub mod proto;
|
|
pub mod rpc_service;
|
|
pub mod service_manager;
|
|
pub mod tunnel;
|
|
pub mod utils;
|
|
pub mod web_client;
|
|
|
|
#[cfg(test)]
|
|
mod tests;
|
|
|
|
pub const VERSION: &str = common::constants::EASYTIER_VERSION;
|
|
rust_i18n::i18n!("locales", fallback = "en");
|
|
|
|
pub fn print_completions<G: Generator>(generator: G, cmd: &mut Command, bin_name: &str) {
|
|
clap_complete::generate(generator, cmd, bin_name, &mut io::stdout());
|
|
}
|