added info for igloo

unstable
penguin 3 years ago
parent 83f11ca072
commit 8a180683e4

@ -25,6 +25,7 @@ pub enum IglooInstType
Clean = 4,
Erase = 5,
GenDoc = 6,
Info = 7,
}
#[derive(Debug)]

@ -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<IglooInstType, IglooErrType
println!("Igloo erase was called!");
_res_type = Erase;
}
Some("info") =>
{
println!("Igloo info was called!");
_res_type = Info;
}
None => unreachable!(),
_ => unreachable!(),
}

@ -133,6 +133,10 @@ impl Igloo
Run =>
{
}
Info =>
{
}
_ => println!("Unhandled case: {:?}", inst_type),
} break; }

Loading…
Cancel
Save