excel-cli 1.3.2

Excel CLI for AI, scripting, and terminal users. Headless JSON API for automation, plus a Vim-like TUI for interactive browsing and editing.
Documentation
use super::{ActionType, Command};
use crate::excel::Cell;

#[derive(Clone)]
pub struct RowAction {
    pub sheet_index: usize,
    pub sheet_name: String,
    pub row: usize,
    pub row_data: Vec<Cell>,
}

impl Command for RowAction {
    fn action_type(&self) -> ActionType {
        ActionType::DeleteRow
    }
}

#[derive(Clone)]
pub struct MultiRowAction {
    pub sheet_index: usize,
    pub sheet_name: String,
    pub start_row: usize,
    pub end_row: usize,
    pub rows_data: Vec<Vec<Cell>>,
}

impl Command for MultiRowAction {
    fn action_type(&self) -> ActionType {
        ActionType::DeleteMultiRows
    }
}