2021-02-14 06:28:01 -07:00
|
|
|
use eyre::Result;
|
|
|
|
use structopt::StructOpt;
|
|
|
|
|
2021-02-14 08:15:26 -07:00
|
|
|
use crate::remote::server;
|
2021-02-14 06:28:01 -07:00
|
|
|
|
|
|
|
#[derive(StructOpt)]
|
2021-02-14 08:15:26 -07:00
|
|
|
pub enum Cmd {
|
|
|
|
Start { host: Vec<String> },
|
2021-02-14 06:28:01 -07:00
|
|
|
}
|
|
|
|
|
2021-02-14 08:15:26 -07:00
|
|
|
#[allow(clippy::unused_self)] // I'll use it later
|
|
|
|
impl Cmd {
|
2021-02-14 06:28:01 -07:00
|
|
|
pub fn run(&self) -> Result<()> {
|
|
|
|
server::launch();
|
|
|
|
Ok(())
|
|
|
|
}
|
|
|
|
}
|