summaryrefslogtreecommitdiffstats
path: root/src/command/server.rs
blob: 9d9bcb3ad8ce89b70917e7b790f8a866ff25e13d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use eyre::Result;
use structopt::StructOpt;

use crate::remote::server;
use crate::settings::Settings;

#[derive(StructOpt)]
pub enum Cmd {
    Start { host: Vec<String> },
}

#[allow(clippy::unused_self)] // I'll use it later
impl Cmd {
    pub fn run(&self, settings: &Settings) -> Result<()> {
        server::launch(settings);
        Ok(())
    }
}