feat: Implement starship configure command (#751)

This commit is contained in:
Dominik Braun
2019-12-18 22:09:36 +01:00
committed by Matan Kushner
parent c82aeb70db
commit a4c5c00a73
2 changed files with 40 additions and 0 deletions
+3
View File
@@ -4,6 +4,7 @@ extern crate clap;
mod bug_report;
mod config;
mod configs;
mod configure;
mod context;
mod init;
mod module;
@@ -110,6 +111,7 @@ fn main() {
.arg(&keymap_arg)
.arg(&jobs_arg),
)
.subcommand(SubCommand::with_name("configure").about("Edit the starship configuration"))
.subcommand(SubCommand::with_name("bug-report").about(
"Create a pre-populated GitHub issue with information about your configuration",
))
@@ -137,6 +139,7 @@ fn main() {
print::module(module_name, sub_m.clone());
}
}
("configure", Some(_)) => configure::edit_configuration(),
("bug-report", Some(_)) => bug_report::create(),
_ => {}
}