diff options
| author | Fuwn <[email protected]> | 2021-05-23 14:15:04 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-23 14:15:04 -0700 |
| commit | 6ef2affb0610691f5dcea5921b4900a075f46bfb (patch) | |
| tree | fa729a95c48892e7b8f68f11adae6760ff8f1a29 /crates/whirl_prompt/src | |
| parent | docs(server): minor doc changes (diff) | |
| download | whirl-6ef2affb0610691f5dcea5921b4900a075f46bfb.tar.xz whirl-6ef2affb0610691f5dcea5921b4900a075f46bfb.zip | |
refactor(config): deprecate refresh method
Diffstat (limited to 'crates/whirl_prompt/src')
| -rw-r--r-- | crates/whirl_prompt/src/builtins/mod.rs | 2 | ||||
| -rw-r--r-- | crates/whirl_prompt/src/constants.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/crates/whirl_prompt/src/builtins/mod.rs b/crates/whirl_prompt/src/builtins/mod.rs index 0359443..556408b 100644 --- a/crates/whirl_prompt/src/builtins/mod.rs +++ b/crates/whirl_prompt/src/builtins/mod.rs @@ -83,7 +83,7 @@ pub fn builtin_config(args: &[String]) -> i32 { for help in HELPABLES_BUILTIN_CONFIG.iter() { println!("{}", help); }, - "refresh" => Config::refresh(), + // "refresh" => Config::refresh(), _ => println!("invalid arguments provided"), }, None => println!("invalid amount arguments provided"), diff --git a/crates/whirl_prompt/src/constants.rs b/crates/whirl_prompt/src/constants.rs index c173a57..e87cceb 100644 --- a/crates/whirl_prompt/src/constants.rs +++ b/crates/whirl_prompt/src/constants.rs @@ -12,8 +12,8 @@ pub const HELPABLES_BUILTINS: [&str; 8] = [ "history - display the command history", "ls - display the present files", ]; -pub const HELPABLES_BUILTIN_CONFIG: [&str; 3] = [ +pub const HELPABLES_BUILTIN_CONFIG: [&str; 2] = [ "help - you are here", - "refresh - reload the configuration file", + // "refresh - reload the configuration file", "show - display the current configuration", ]; |