ftnet 0.1.0

FTNet: FifthTry Network
Documentation
#[derive(clap::Parser, Debug)]
#[command(version, about, long_about = None)]
pub struct Cli {
    #[command(subcommand)]
    pub command: Command,
}

#[derive(clap::Subcommand, Debug)]
pub enum Command {
    #[clap(about = "Start the ftn service.")]
    Start {
        #[arg(default_value_t = false, short = 'f')]
        foreground: bool,
        data_dir: Option<String>,
    },
    #[clap(about = "Proxy TCP server to a remote ftn service.")]
    TcpProxy {
        id: String,
        #[arg(default_value_t = 2345)]
        port: u16,
    },
}