Skip to content

feat: support kebab-case subcommand aliases alongside camelCase #32

Description

@jpoehnelt-bot

Problem

gws subcommand names mirror the underlying API method names, which use camelCase (e.g. getProfile, calendarList). CLI users naturally try kebab-case equivalents (get-profile, calendar-list), which fail — though the error does include a hint about the correct name.

Example

gws gmail users get-profile --params '{"userId":"me"}'
# error: unrecognized subcommand 'get-profile'
# tip: a similar subcommand exists: 'getProfile'

Proposed improvement

Add kebab-case aliases for all camelCase subcommands, or normalize subcommand lookup to accept both forms. This follows the Unix convention (where kubectl get-pod and similar patterns are common) and significantly reduces first-use friction for developers who haven't memorized the exact casing.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions