Skip to content

feat(docs): add trash command (#96)#106

Merged
omriariav merged 2 commits intomainfrom
feat/docs-delete
Feb 19, 2026
Merged

feat(docs): add trash command (#96)#106
omriariav merged 2 commits intomainfrom
feat/docs-delete

Conversation

@omriariav
Copy link
Owner

Summary

  • Add gws docs trash <document-id> command that moves a Google Doc to trash via the Drive API
  • Support --permanent flag for irreversible deletion (bypasses trash)
  • Named trash (not delete) since delete already handles content range deletion within documents

Test plan

  • Unit tests for flag registration (TestDocsTrashCommand_Flags)
  • Unit test for trash (move to trash) flow (TestDocsTrash_MoveToTrash)
  • Unit test for permanent delete flow (TestDocsTrash_PermanentDelete)
  • Command registered in TestDocsCommands list
  • Skill docs updated (SKILL.md + references/commands.md)
  • go vet ./... passes
  • go test ./cmd/... passes (all tests)

🤖 Generated with Claude Code

omriariav and others added 2 commits February 19, 2026 09:50
Add `gws docs trash <document-id>` command that moves a Google Doc to
trash using the Drive API. Supports `--permanent` flag for irreversible
deletion. Named `trash` since `delete` already handles content range
deletion within documents.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Other docs commands use "document_id" in JSON output, not "id".

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@omriariav omriariav merged commit a08dd57 into main Feb 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments