Skip to content

feat(docs): full Docs API parity — already at parity (batchUpdate), add delete command #96

@omriariav

Description

@omriariav

Context

The Google Docs API only has 3 REST methods: get, create, and batchUpdate. gws docs already wraps all three — batchUpdate is used under the hood for append, insert, replace, delete, format, set-paragraph-style, add-list, remove-list, and add-table.

Status: Near-parity

Covered (all 3 API methods)

API Method gws commands
documents.get docs read, docs info
documents.create docs create
documents.batchUpdate docs append, docs insert, docs replace, docs delete, docs format, docs set-paragraph-style, docs add-list, docs remove-list, docs add-table

Potential additions (higher-level wrappers)

These are not new API methods, but useful CLI convenience commands built on batchUpdate:

Command Description
docs add-header Insert header/footer
docs add-page-break Insert page break
docs add-section-break Insert section break
docs update-table-cell Modify table cell content
docs add-inline-image Insert image by URL

These can be added as needed. Docs is effectively at full API parity already.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions