diff options
Diffstat (limited to '')
| -rw-r--r-- | src/command/mod.rs | 1 | ||||
| -rw-r--r-- | src/command/server.rs | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/src/command/mod.rs b/src/command/mod.rs index c61d2280..5c36146a 100644 --- a/src/command/mod.rs +++ b/src/command/mod.rs @@ -1,2 +1,3 @@ pub mod history; pub mod import; +pub mod server; diff --git a/src/command/server.rs b/src/command/server.rs new file mode 100644 index 00000000..aee64c07 --- /dev/null +++ b/src/command/server.rs @@ -0,0 +1,16 @@ +use eyre::Result; +use structopt::StructOpt; + +use crate::server::server; + +#[derive(StructOpt)] +pub enum ServerCmd { + Start { command: Vec<String> }, +} + +impl ServerCmd { + pub fn run(&self) -> Result<()> { + server::launch(); + Ok(()) + } +} |
