excel_cli/actions/
sheet.rs1use super::{ActionType, Command};
2use crate::excel::Sheet;
3use anyhow::Result;
4
5#[derive(Clone)]
6pub struct SheetAction {
7 pub sheet_index: usize,
8 pub sheet_name: String,
9 pub sheet_data: Sheet,
10 pub column_widths: Vec<usize>,
11}
12
13impl Command for SheetAction {
14 fn execute(&self) -> Result<()> {
15 unimplemented!("Requires an ActionExecutor implementation")
16 }
17
18 fn undo(&self) -> Result<()> {
19 unimplemented!("Requires an ActionExecutor implementation")
20 }
21
22 fn action_type(&self) -> ActionType {
23 ActionType::DeleteSheet
24 }
25}