aboutsummaryrefslogtreecommitdiff
path: root/planetwars-cli/src/commands/serve.rs
blob: 2a2e59b159d50269356ed3259c4ea6df3e816447 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::env;
use std::io;

use clap::Parser;

use crate::web;

#[derive(Parser)]
pub struct ServeCommand;

impl ServeCommand {
    pub async fn run(self) -> io::Result<()> {
        let project_dir = env::current_dir().unwrap();

        web::run(project_dir).await;
        Ok(())
    }
}