aboutsummaryrefslogtreecommitdiff
path: root/src/config/mod.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-10 16:16:56 +0000
committerFuwn <[email protected]>2021-05-10 16:16:56 +0000
commitebe2a60e841b9d1108956e2984b8d81613de0f3a (patch)
tree8549f4dd558920f8521b60c5d2227d5bf13cf53d /src/config/mod.rs
parentfeat(prompt): toggle prompt via configuration file (diff)
downloadwhirl-ebe2a60e841b9d1108956e2984b8d81613de0f3a.tar.xz
whirl-ebe2a60e841b9d1108956e2984b8d81613de0f3a.zip
refactor(config): move `prompt_ps1` configuration key to `whirlsplash.prompt` group as `ps1`
The `prompt_ps1` configuration key is moved to the `whirlsplash.prompt` group as `whirlsplash.prompt.ps1`. BREAKING CHANGE: `whirlsplash.prompt.ps1` configuration key created.
Diffstat (limited to 'src/config/mod.rs')
-rw-r--r--src/config/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs
index a71020d..f86008e 100644
--- a/src/config/mod.rs
+++ b/src/config/mod.rs
@@ -8,7 +8,6 @@ pub struct WhirlsplashConfig {
pub worldsmaster_username: String,
pub log_level: i64,
pub ip: String,
- pub prompt_ps1: String,
pub api: WhirlsplashApiConfig,
pub prompt: WhirlsplashPromptConfig,
}
@@ -19,6 +18,7 @@ pub struct WhirlsplashApiConfig {
#[derive(Serialize, Deserialize, Debug)]
pub struct WhirlsplashPromptConfig {
pub enable: bool,
+ pub ps1: String,
}
#[derive(Serialize, Deserialize, Debug)]
pub struct DistributorConfig {
@@ -63,12 +63,12 @@ impl Default for Config {
worldsmaster_username: "WORLDSMASTER".to_string(),
log_level: 1,
ip: "0.0.0.0".to_string(),
- prompt_ps1: "[WORLDSMASTER@Whirlsplash ~]$".to_string(),
api: WhirlsplashApiConfig {
port: 80
},
prompt: WhirlsplashPromptConfig {
- enable: false
+ enable: false,
+ ps1: "[WORLDSMASTER@Whirlsplash ~]$".to_string(),
},
},
distributor: DistributorConfig {