Add OSDK command line interface

This commit is contained in:
Jianfeng Jiang
2024-02-18 09:42:31 +00:00
committed by Tate, Hongliang Tian
parent f2f991b239
commit 3b3d088767
34 changed files with 2615 additions and 46 deletions

24
osdk/src/main.rs Normal file
View 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();
}