feat: add dev-server

This commit is contained in:
mrxiaozhuox committed 2022-01-22 21:23:30 +08:00
1 parent 281a075c6c
commit 5e710f6693
11 files changed
+307 -148

No files matched your search

+11 -13
View File
@@ -3,30 +3,28 @@ use structopt::StructOpt;
#[tokio::main]
async fn main() -> Result<()> {
let args = Cli::from_args();
set_up_logging();
match args.action {
Commands::Translate(opts) => {
opts.translate();
}
}
Commands::Build(opts) => {
opts.build();
}
// Commands::Clean(_) => {
// //
// }
// Commands::Clean(_) => {
// //
// }
// Commands::Config(_) => {
// //
// }
Commands::Serve(_) => {
//
}
// Commands::Config(_) => {
// //
// }
Commands::Serve(opts) => {
opts.serve().await;
}
}
Ok(())