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
18 lines
415 B
Rust
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,
|
|
}
|
|
}
|