implemented serve command and added async runtime

This commit is contained in:
2023-03-12 19:30:11 +01:00
parent fb147e5857
commit cc77e4ef9c
5 changed files with 1994 additions and 44 deletions

View File

@@ -15,16 +15,16 @@ pub struct App;
impl App {
pub fn start(&self) {
pub async fn start(&self) {
let args = args();
Self::setup_environment_variables();
match args.command {
CommandArg::Build => build(),
CommandArg::Build => build().await,
CommandArg::Health => health(),
CommandArg::InstallReveal => install_reveal(),
CommandArg::Serve => serve()
}
CommandArg::InstallReveal => install_reveal().await,
CommandArg::Serve => serve().await
};
}
fn setup_environment_variables() {