mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-23 17:33:23 +00:00
Add OSDK command line interface
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
f2f991b239
commit
3b3d088767
24
osdk/src/main.rs
Normal file
24
osdk/src/main.rs
Normal file
@ -0,0 +1,24 @@
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
use env_logger::Env;
|
||||
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
#[macro_use]
|
||||
extern crate serde;
|
||||
|
||||
mod cli;
|
||||
mod commands;
|
||||
mod config_manager;
|
||||
mod error;
|
||||
#[cfg(test)]
|
||||
mod test;
|
||||
mod utils;
|
||||
|
||||
fn main() {
|
||||
// init logger
|
||||
let env = Env::new().filter("OSDK_LOG_LEVEL");
|
||||
env_logger::init_from_env(env);
|
||||
|
||||
cli::main();
|
||||
}
|
Reference in New Issue
Block a user