Skip to content

docs: document helper commands and the + prefix convention#427

Merged
jpoehnelt merged 4 commits intogoogleworkspace:mainfrom
abhiram304:docs/document-helper-commands
Mar 12, 2026
Merged

docs: document helper commands and the + prefix convention#427
jpoehnelt merged 4 commits intogoogleworkspace:mainfrom
abhiram304:docs/document-helper-commands

Conversation

@abhiram304
Copy link
Contributor

Summary

  • Adds a Helper Commands section to the Advanced Usage chapter of the README
  • Explains the + prefix convention — what it means, why it exists, and how it relates to Discovery-generated commands
  • Documents all 23 helper commands across 11 services in a reference table
  • Includes usage examples for the most common helpers (gmail, sheets, calendar, drive, workflow)

Motivation

The + prefix convention was entirely undiscoverable without reading source code. New users running gws gmail --help would see +send, +reply, etc. but have no documentation explaining what the + prefix means or that a richer set of helpers exists across other services.

Test plan

  • No code changes — docs only
  • All command names and descriptions verified against source (src/helpers/*/)
  • Changeset included (patch bump)

🤖 Generated with Claude Code

Add a "Helper Commands" section to the Advanced Usage chapter of the
README explaining:

- What the `+` prefix means and why it exists (visually distinct from
  Discovery-generated method names, no collision risk)
- How to discover helpers via `gws <service> --help`
- A full reference table of all 23 helper commands across 11 services
- Usage examples for the most common helpers (gmail, sheets, calendar,
  drive, workflow)

Fixes discoverability gap: users had no way to learn about helper
commands without reading the source code.
@changeset-bot
Copy link

changeset-bot bot commented Mar 12, 2026

🦋 Changeset detected

Latest commit: 2305514

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@googleworkspace/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the project's documentation by introducing a new section dedicated to helper commands. The primary goal is to improve the discoverability and understanding of these specialized commands, which were previously undocumented and difficult for new users to find. By explaining the + prefix convention, providing a comprehensive reference, and offering practical examples, the changes aim to make the tool more accessible and user-friendly.

Highlights

  • New Documentation Section: Added a dedicated 'Helper Commands' section to the Advanced Usage chapter of the README.
  • '+' Prefix Convention Explained: Provided a clear explanation of the + prefix convention, detailing its meaning, purpose, and relationship to Discovery-generated commands.
  • Comprehensive Helper Command Reference: Documented all 23 helper commands across 11 different services in a detailed reference table.
  • Usage Examples: Included practical usage examples for the most frequently used helper commands, such as those for Gmail, Sheets, Calendar, Drive, and Workflow.
Changelog
  • .changeset/document-helper-commands.md
    • Added a new changeset file to record the documentation of helper commands.
  • README.md
    • Introduced a new 'Helper Commands' section.
    • Explained the + prefix convention for helper commands.
    • Included a table listing 23 helper commands across 11 services with descriptions.
    • Provided usage examples for common helper commands.
Activity
  • The changes are documentation-only, with no code modifications.
  • All command names and descriptions were verified against the source code in src/helpers/*/.
  • A changeset entry was included for a patch bump.
  • The pull request content was generated with assistance from Claude Code.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Generative AI Prohibited Use Policy, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@google-cla
Copy link

google-cla bot commented Mar 12, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds valuable documentation for the helper commands, which was previously missing. The new section in the README clearly explains the + prefix convention, provides a comprehensive reference table of all helper commands, and includes usage examples. I've found a couple of small errors in the examples that would cause them to fail for users. My review includes suggestions to correct them. Overall, this is a great improvement to the project's documentation.

README.md Outdated
gws calendar +agenda

# Upload a file to Drive
gws drive +upload --file ./report.pdf --name "Q1 Report"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The example for gws drive +upload is incorrect. The file argument is a positional argument, not an option, so it should not be prefixed with --file.

Suggested change
gws drive +upload --file ./report.pdf --name "Q1 Report"
gws drive +upload ./report.pdf --name "Q1 Report"

- gws sheets +append: flag is --spreadsheet (not --spreadsheet-id) and
  +append has no --range argument
- gws drive +upload: file path is a positional argument, not --file flag
@googleworkspace-bot
Copy link
Collaborator

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds comprehensive documentation for the CLI's helper commands to the README.md. The changes are well-structured and significantly improve discoverability. I've found one high-severity issue in the documentation for the script +push command, where the description omits the destructive nature of the command, which could lead to data loss. I've suggested a more explicit description to prevent this.

The +push helper replaces all files in an Apps Script project.
Update description to reflect this so users understand the action
is destructive before running it.

Addresses code-review feedback.
@googleworkspace-bot
Copy link
Collaborator

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds excellent documentation for the CLI's helper commands to the main README.md, significantly improving their discoverability. The new section explains the + prefix convention, provides a complete reference table for all helper commands, and includes helpful usage examples. My review identified a minor inaccuracy in the command and service count within the changeset file, and I've left a comment with a suggestion to correct it. Overall, this is a valuable documentation enhancement.

Addresses code-review feedback noting the count was off.
@googleworkspace-bot
Copy link
Collaborator

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces documentation for the helper commands available in the CLI. It adds a new 'Helper Commands' section to the README.md file, which explains the + prefix convention, provides a comprehensive reference table of all 24 helper commands across 10 services, and includes usage examples for common helpers. A corresponding changeset file is also included. The documentation added is accurate and aligns with the helper command implementations in the source code. The changes look good and I have no comments.

@jpoehnelt jpoehnelt merged commit 2df32ee into googleworkspace:main Mar 12, 2026
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants