Skip to content

Add [action] hint to tools command Use string#316

Merged
jeremy merged 3 commits intomainfrom
bc-9675495173
Mar 16, 2026
Merged

Add [action] hint to tools command Use string#316
jeremy merged 3 commits intomainfrom
bc-9675495173

Conversation

@jeremy
Copy link
Copy Markdown
Member

@jeremy jeremy commented Mar 16, 2026

Summary

  • Add [action] to the Use field of the tools command, matching the convention used by chat, schedule, boost, and people for bare command groups
  • Add e2e tests verifying tools help output shows the subcommand hint in the usage line

Test plan

  • make test — all unit tests pass
  • make test-e2e — all 293 e2e tests pass (3 new in tools.bats)
  • go vet and golangci-lint pass clean

Summary by cubic

Add “[action]” to the Use string for the tools command to match other command groups and clearly signal that a subcommand is required. Add e2e tests verifying help shows the subcommand hint and that a bare invocation shows help; also fix the tools.bats header to reflect it only tests help output.

Written for commit e7b28eb. Summary will update on new commits.

jeremy added 2 commits March 15, 2026 18:54
Matches the convention used by chat, schedule, boost, and people
commands for bare command groups that advertise subcommands.
Verify bare invocation shows help, and --help/-h display the
subcommand hint in the usage line.
@jeremy jeremy requested a review from a team as a code owner March 16, 2026 02:01
Copilot AI review requested due to automatic review settings March 16, 2026 02:01
@github-actions github-actions bot added commands CLI command implementations tests Tests (unit and e2e) enhancement New feature or request labels Mar 16, 2026
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 2 files

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the tools command metadata to match the CLI’s “group command” usage convention and adds end-to-end coverage to ensure the help output for tools continues to display the subcommand placeholder in the usage line.

Changes:

  • Update tools command Use string to tools [action] for consistency with other command groups (e.g., chat, schedule, boost, people).
  • Add new e2e tests asserting basecamp tools and basecamp tools --help/-h display expected help/usage output.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
internal/commands/tools.go Adds [action] to the cobra Use string for the tools command to align with existing group-command conventions.
e2e/tools.bats Adds e2e coverage for tools help output (group help and usage line subcommand placeholder).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

The file only tests help output, not error handling.
@jeremy jeremy merged commit 458dcdc into main Mar 16, 2026
26 checks passed
@jeremy jeremy deleted the bc-9675495173 branch March 16, 2026 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands CLI command implementations enhancement New feature or request tests Tests (unit and e2e)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants