diff --git a/igloo_base/src/lib.rs b/igloo_base/src/lib.rs index 293bbb7..ade5485 100644 --- a/igloo_base/src/lib.rs +++ b/igloo_base/src/lib.rs @@ -25,6 +25,7 @@ pub enum IglooInstType Clean = 4, Erase = 5, GenDoc = 6, + Info = 7, } #[derive(Debug)] diff --git a/igloo_cli/src/lib.rs b/igloo_cli/src/lib.rs index ab97218..f18a18f 100644 --- a/igloo_cli/src/lib.rs +++ b/igloo_cli/src/lib.rs @@ -49,6 +49,15 @@ pub fn igloo_app() -> ArgMatches Defaults to Debug")),) .subcommand(App::new("erase") .about("Erases flash from target mcu or target mcus")) + .subcommand(App::new("info") + .about("Provides info about various parts of igloo") + .subcommand(App::new("list") + .arg(Arg::new("supported-mcus") + .required(false) + .about("List of supported MCUs for the current version"),) + .arg(Arg::new("supported-boards") + .required(false) + .about("List of supported boards for the current version"),))) .get_matches(); ret_app @@ -80,6 +89,11 @@ pub fn igloo_subcommand(args: &ArgMatches) -> Result + { + println!("Igloo info was called!"); + _res_type = Info; + } None => unreachable!(), _ => unreachable!(), } diff --git a/igloo_core/src/lib.rs b/igloo_core/src/lib.rs index 23fb406..b5ecffe 100644 --- a/igloo_core/src/lib.rs +++ b/igloo_core/src/lib.rs @@ -133,6 +133,10 @@ impl Igloo Run => { + } + Info => + { + } _ => println!("Unhandled case: {:?}", inst_type), } break; }