config for gui.format
This commit is contained in:
@@ -39,6 +39,7 @@ pub struct GUI {
|
|||||||
pub buttons: Buttons,
|
pub buttons: Buttons,
|
||||||
pub press: PreSufFix,
|
pub press: PreSufFix,
|
||||||
pub release: PreSufFix,
|
pub release: PreSufFix,
|
||||||
|
pub format: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug)]
|
#[derive(Serialize, Deserialize, Debug)]
|
||||||
@@ -128,6 +129,13 @@ fn build_config_std() -> Config {
|
|||||||
prefix: env::var("INPUT_GUI_RELEASE_PREFIX").unwrap_or(String::from("!")),
|
prefix: env::var("INPUT_GUI_RELEASE_PREFIX").unwrap_or(String::from("!")),
|
||||||
suffix: env::var("INPUT_GUI_RELEASE_SUFFIX").unwrap_or(String::from("")),
|
suffix: env::var("INPUT_GUI_RELEASE_SUFFIX").unwrap_or(String::from("")),
|
||||||
},
|
},
|
||||||
|
format: match env::var("INPUT_GUI_FORMAT") {
|
||||||
|
Ok(x) => Some(x),
|
||||||
|
Err(_) => match env::var("INPUT_GUI_FORMAT_V01").unwrap_or(String::from("false")) == String::from("true") {
|
||||||
|
true => Some(String::from("TODO")),
|
||||||
|
false => None,
|
||||||
|
},
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
device: None,
|
device: None,
|
||||||
udp: Some(UDP{
|
udp: Some(UDP{
|
||||||
|
|||||||
Reference in New Issue
Block a user