From 8e5fa60fc8dbea2274284b120fdb454bbfea2fc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Grythe=20St=C3=B8dle?= Date: Thu, 2 Jan 2020 05:19:08 +0100 Subject: feat: Add the `starship explain` command (#699) This adds the explain argument to Starship, which explains what the printed modules in the prompt are. --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 9fb1e0fee..9b917a34b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -122,6 +122,9 @@ fn main() { .about("Prints time in milliseconds") .settings(&[AppSettings::Hidden]), ) + .subcommand( + SubCommand::with_name("explain").about("Explains the currently showing modules"), + ) .get_matches(); match matches.subcommand() { @@ -157,6 +160,7 @@ fn main() { None => println!("{}", -1), } } + ("explain", Some(sub_m)) => print::explain(sub_m.clone()), _ => {} } } -- cgit v1.2.3