Skip to content

Commit

Permalink
Add better support for plist values (BrainiumLLC#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurKValladares committed Apr 27, 2022
1 parent ccb8f7e commit 6e5d817
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/apple/config/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,17 @@ impl Display for PromptError {
}
}

#[derive(Clone, Debug, Deserialize, Serialize)]
#[serde(untagged)]
pub enum PlistValue {
Bool(bool),
Strings(OneOrMany<String>),
}

#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct PListPair {
key: String,
value: OneOrMany<String>,
value: PlistValue,
}

#[derive(Clone, Debug, Deserialize, Serialize)]
Expand Down

0 comments on commit 6e5d817

Please sign in to comment.