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