diff options
author | Saurav Sharma <appdroiddeveloper@gmail.com> | 2019-08-20 10:27:25 +0545 |
---|---|---|
committer | Matan Kushner <hello@matchai.me> | 2019-08-20 00:42:25 -0400 |
commit | 075a76897cc28a6775c42b1d01a9c344c0f75ef0 (patch) | |
tree | 4f348709752d552694bda25e7f599359933be397 /src/print.rs | |
parent | 0e82c19f37e80e258ad7f0e6136a2bcf37c9648a (diff) |
fix: Change panicking on unknown module to error print and support module listing flag (#197)
Diffstat (limited to 'src/print.rs')
-rw-r--r-- | src/print.rs | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/print.rs b/src/print.rs index 0cf495f72..69c56027a 100644 --- a/src/print.rs +++ b/src/print.rs @@ -5,27 +5,9 @@ use std::io::{self, Write}; use crate::config::Config; use crate::context::Context; use crate::module::Module; +use crate::module::ALL_MODULES; use crate::modules; -// List of all modules -const ALL_MODULES: &[&str] = &[ - "battery", - "character", - "cmd_duration", - "directory", - "git_branch", - "git_status", - "golang", - "jobs", - "line_break", - "nodejs", - "package", - "python", - "ruby", - "rust", - "username", -]; - // List of default prompt order // NOTE: If this const value is changed then Default prompt order subheading inside // prompt heading of config docs needs to be updated according to changes made here. |