mirror of
https://mirror.suhoan.cn/https://github.com/EasyTier/EasyTier.git
synced 2025-12-12 20:57:26 +08:00
34 lines
644 B
Rust
34 lines
644 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 instance_manager;
|
|
pub mod launcher;
|
|
pub mod peers;
|
|
pub mod proto;
|
|
pub mod rpc_service;
|
|
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());
|
|
}
|