Andrew Rioux aecf1c9b80
feat: adding a bind shell example with more stuff
adding a bind shell that can allow for more practice with future
features such as multiple transports, encryption, transferring files,
and a more robust client interface
2023-09-02 14:32:34 -04:00

18 lines
415 B
Rust

use structopt::StructOpt;
mod commands;
mod configs;
mod options;
use options::{Command, Options};
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let options = Options::from_args();
match options.command {
Command::Generate { name, port } => commands::generate::generate(name, port).await,
Command::Connect { config, ip } => commands::connect::connect(config, ip).await,
}
}