stablessh 0.1.1

Keeps SSH on even when laptop is closed
Documentation
use clap::{Parser, Subcommand};
use stablessh::{client, server};

#[derive(Parser, Debug)]
struct Cli {
    #[command(subcommand)]
    command: Commands,
}

#[derive(Subcommand, Debug)]
enum Commands {
    Server(server::Opt),
    Client(client::Opt),
}

#[tokio::main]
async fn main() {
    env_logger::init();

    let args = Cli::parse();
    match args.command {
        Commands::Server(opt) => match server::run(opt).await {
            Ok(_) => {}
            Err(e) => log::error!("{:?}", e),
        },
        Commands::Client(opt) => match client::run(opt).await {
            Ok(_) => {}
            Err(e) => log::error!("{:?}", e),
        },
    }
    std::process::exit(0);
}