mirror of
https://github.com/openai/codex.git
synced 2026-11-07 20:30:33 +00:00
feat: wire spreadsheet artifact (#13362)
This commit is contained in:
@@ -128,6 +128,18 @@ impl SpreadsheetConditionalFormatCollection {
|
||||
}
|
||||
|
||||
impl SpreadsheetArtifact {
|
||||
pub fn validate_conditional_formats(
|
||||
&self,
|
||||
action: &str,
|
||||
sheet_name: &str,
|
||||
) -> Result<(), SpreadsheetArtifactError> {
|
||||
let sheet = self.sheet_lookup(action, Some(sheet_name), None)?;
|
||||
for format in &sheet.conditional_formats {
|
||||
validate_conditional_format(self, format, action)?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn add_conditional_format(
|
||||
&mut self,
|
||||
action: &str,
|
||||
|
||||
Reference in New Issue
Block a user