Files
AWG2_harness/traffic_core/src/cli.rs
T

25 lines
423 B
Rust

use std::path::PathBuf;
use clap::{Parser, Subcommand};
#[derive(Debug, Parser)]
#[command(name = "awg2-harness")]
pub struct Cli {
#[arg(long, global = true)]
pub config: Option<PathBuf>,
#[command(subcommand)]
pub command: Command,
}
#[derive(Debug, Subcommand)]
pub enum Command {
Daemon,
ApplyLimits,
ApplyFirewall,
Status,
EnsureSwap,
ValidateConfig,
ValidateRuntime,
}