Skip to content

feat(sheets): add tab management commands (add-tab, rename-tab, delete-tab) #310

@JulienMalige

Description

@JulienMalige

Problem

Currently gog sheets supports reading, writing, formatting, and inserting rows/columns, but there's no way to manage tabs (sheets) within a spreadsheet — you can't create, rename, or delete them.

This means users who want to set up a spreadsheet programmatically have to create tabs manually in the browser first.

Proposed Solution

Add three new subcommands:

  • gog sheets add-tab <spreadsheetId> <tabName> — create a new tab
  • gog sheets rename-tab <spreadsheetId> <oldName> <newName> — rename an existing tab
  • gog sheets delete-tab <spreadsheetId> <tabName> — delete a tab (with --force to skip confirmation)

These use the existing Sheets batchUpdate API with AddSheetRequest, UpdateSheetPropertiesRequest, and DeleteSheetRequest.

Implementation

PR: #309

Follows the same patterns as:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions