diff options
| author | sigoden <sigoden@gmail.com> | 2024-12-06 18:28:55 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-06 18:28:55 +0800 |
| commit | af4ff7afe9c8268a62d31aa3ede59fbc81d6e946 (patch) | |
| tree | 42526e8e4e2641f8728df5b85caf953e6e5b937a /src/config | |
| parent | b164a1587deff738d04a75665bdb863d82b3264c (diff) | |
| download | aichat-af4ff7afe9c8268a62d31aa3ede59fbc81d6e946.tar.gz | |
refactor: change config field name (#1042)
append_command_to_history_file => save_shell_history
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs index 4c6a321..f82cecc 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -137,7 +137,7 @@ pub struct Config { pub serve_addr: Option<String>, pub user_agent: Option<String>, - pub append_command_to_history_file: bool, + pub save_shell_history: bool, pub clients: Vec<ClientConfig>, @@ -210,7 +210,7 @@ impl Default for Config { serve_addr: None, user_agent: None, - append_command_to_history_file: true, + save_shell_history: true, clients: vec![], @@ -2258,8 +2258,8 @@ impl Config { if let Some(v) = read_env_value::<String>(&get_env_name("user_agent")) { self.user_agent = v; } - if let Some(Some(v)) = read_env_bool(&get_env_name("append_command_to_history_file")) { - self.append_command_to_history_file = v; + if let Some(Some(v)) = read_env_bool(&get_env_name("save_shell_history")) { + self.save_shell_history = v; } } |
