pub enum Commands {
Setup,
Run {
config: PathBuf,
},
Status {
config: PathBuf,
},
Add {
config: PathBuf,
name: String,
tag: String,
priority: Option<u32>,
},
Import {
config: PathBuf,
file: Option<PathBuf>,
no_benchmark: bool,
links: Vec<String>,
},
Remove {
config: PathBuf,
name: Option<String>,
all: bool,
},
List {
config: PathBuf,
},
Benchmark {
config: PathBuf,
},
Prune {
config: PathBuf,
},
}Variants§
Setup
Interactive setup wizard
Run
Run the monitoring and failover daemon
Status
Show current proxy core and profile status
Add
Add a new proxy profile to config.yaml (appends without removing existing profiles)
Import
Import profiles from a file, inline arguments, or interactive paste (vless://... or name,tag)
Fields
Remove
Remove a proxy profile by name, or remove all profiles with –all
Fields
List
List all saved proxy profiles
Benchmark
Test all profiles, rank healthy ones by lowest ping, and activate the fastest
Prune
Test all profiles and remove dead/unhealthy ones from config.yaml
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for Commands
impl Subcommand for Commands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Forget for Commands
impl Freeze for Commands
impl Move for Commands
impl RefUnwindSafe for Commands
impl Send for Commandswhere
RawVecInner: Send,
impl Sync for Commandswhere
RawVecInner: Sync,
impl Unpin for Commands
impl UnsafeUnpin for Commandswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Commandswhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more