feat: add dev-server
This commit is contained in:
1 parent
281a075c6c
commit
5e710f6693
11 files changed
+307
-148
No files matched your search
+11
-13
@@ -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(())
|
||||
|
||||
Reference in new issue
Block a user