atuin/src/command/server.rs

19 lines
354 B
Rust
Raw Normal View History

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;
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 {
pub fn run(&self, settings: &Settings) -> Result<()> {
server::launch(settings);
2021-02-14 14:28:01 +01:00
Ok(())
}
}