Skip to content

cli: add canonical query command names with backward-compatible aliases - #13

Merged
isink17 merged 2 commits into
masterfrom
cli/add_canonical_names
Apr 22, 2026
Merged

cli: add canonical query command names with backward-compatible aliases#13
isink17 merged 2 commits into
masterfrom
cli/add_canonical_names

Conversation

@isink17

@isink17 isink17 commented Apr 22, 2026

Copy link
Copy Markdown
Owner

No description provided.

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

Copy link
Copy Markdown

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 renames several CLI commands to use underscores (e.g., find_symbol, find_callers, get_impact_radius), adds aliases for the previous names, and expands the get_impact_radius command with new flags and examples. Feedback suggests that using underscores is inconsistent with existing hyphenated commands and common CLI conventions. Additionally, it was noted that hardcoded error messages in runQueryCommand should be updated to match the new command names to avoid user confusion.

Comment thread internal/cli/commands.go
Comment on lines +153 to +154
name: "find_symbol",
aliases: []string{"find-symbol"},

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The introduction of underscores in command names (e.g., find_symbol, find_callers, get_impact_radius) is inconsistent with the existing affected-tests command and departs from common CLI naming conventions which typically use hyphens as word separators. Unless there is a specific requirement for underscores (e.g., matching a specific external API), it is recommended to use hyphens to maintain a consistent user interface across the tool.

Suggested change
name: "find_symbol",
aliases: []string{"find-symbol"},
name: "find-symbol",
aliases: []string{"find_symbol"},

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

it's intentional

Comment thread internal/cli/commands.go Outdated
@isink17
isink17 merged commit 410f9af into master Apr 22, 2026
3 checks passed
@isink17
isink17 deleted the cli/add_canonical_names branch April 22, 2026 13:59
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