feat(forms): add question management and watch commands#274
Closed
alexknowshtml wants to merge 1 commit intosteipete:mainfrom
Closed
feat(forms): add question management and watch commands#274alexknowshtml wants to merge 1 commit intosteipete:mainfrom
alexknowshtml wants to merge 1 commit intosteipete:mainfrom
Conversation
88bd383 to
d514f57
Compare
New commands: add-question, delete-question, move-question, update, and watch create/list/delete/renew. Covers the full Google Forms API surface for form modification via batchUpdate and response watches. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
d514f57 to
757ac5e
Compare
Owner
|
Landed directly on PR head repo is no longer available, so the rebased branch could not be pushed back for a normal PR merge.
Key fixups:
Thanks @alexknowshtml! |
steipete
added a commit
that referenced
this pull request
Mar 8, 2026
steipete
added a commit
that referenced
this pull request
Mar 8, 2026
Owner
|
Closed after direct landing on |
klodr
pushed a commit
to klodr/gogcli
that referenced
this pull request
Apr 22, 2026
klodr
pushed a commit
to klodr/gogcli
that referenced
this pull request
Apr 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extends the
formscommand group (added in v0.11.0) with full question management and response watch capabilities, covering the remaining Google Forms API surface.New Commands
Question management (via
forms.batchUpdate):forms add-question— Add text, paragraph, radio, checkbox, dropdown, scale, date, or time questions with--type,--option,--required,--index, and type-specific flagsforms update— Modify form title, description, or quiz mode after creationforms delete-question— Remove a question by indexforms move-question— Reorder questionsResponse watches (push notifications):
forms watch create— Subscribe to response notifications via Cloud Pub/Subforms watch list— List active watchesforms watch delete— Remove a watchforms watch renew— Extend a watch (7-day expiry)Usage Examples
Implementation Notes
--json/--plainoutput,--dry-runsupport,--forcefor destructive opsForceSendFieldsonLocation.Indexto correctly handle index 0 (Go zero-value)add-questionwith default--index=-1fetches current form to determine append position--type scale, etc.)Files Changed
internal/cmd/forms.go— Wired 6 new subcommands intoFormsCmdstructinternal/cmd/forms_modify.go— Question CRUD + form update commands (426 lines)internal/cmd/forms_watch.go— Watch lifecycle commands (241 lines)Test Plan
TestExecute_FormsGet_Text,TestExecute_FormsResponsesList_JSON, etc.)go build ./...compiles cleanlygog forms --helpadd-questionagainst a live form (6 questions of various types)updateto modify form description