Skip to content

fix(cli): deduplicate positional help and unify error wording on files get, files delete, and models get - #33

Merged
copybara-service[bot] merged 1 commit into
mainfrom
copybara/988543303
Sep 28, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
copybara/988543303

Conversation

@copybara-service

Copy link
Copy Markdown

fix(cli): deduplicate positional help and unify error wording on files get, files delete, and models get

  • Remove (also accepted as an argument) from the file and model parameter descriptions in overlays/cli/help.yaml now that the CLI generator appends (or pass it as the [<flag>] argument) automatically.
  • Replace addPositionalIdentifier with normalizeIdentifier in internal/cli/custom/register.go so files get, files delete, and models get use the generated positional argument wiring, error messages, and --usage argument descriptions while retaining files/<id> and models/<id> normalization.
  • Add table tests in internal/cli/custom/custom_test.go covering positional and flag normalization and validation errors.

@google-cla

google-cla Bot commented Sep 25, 2026

Copy link
Copy Markdown

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.

@copybara-service
copybara-service Bot requested a review from a team September 28, 2026 20:24
@copybara-service
copybara-service Bot force-pushed the copybara/988543303 branch 4 times, most recently from 70ad7d6 to ba52d26 Compare September 28, 2026 20:47
…es get`, `files delete`, and `models get`

- Remove `(also accepted as an argument)` from the `file` and `model` parameter descriptions in `overlays/cli/help.yaml` now that the CLI generator appends `(or pass it as the [<flag>] argument)` automatically.
- Replace `addPositionalIdentifier` with `normalizeIdentifier` in `internal/cli/custom/register.go` so `files get`, `files delete`, and `models get` use the generated positional argument wiring, error messages, and `--usage` argument descriptions while retaining `files/<id>` and `models/<id>` normalization.
- Add table tests in `internal/cli/custom/custom_test.go` covering positional and flag normalization and validation errors.

PiperOrigin-RevId: 989821863
@copybara-service
copybara-service Bot merged commit 1fa466c into main Sep 28, 2026
2 checks passed
@copybara-service
copybara-service Bot deleted the copybara/988543303 branch September 28, 2026 20:49
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.

0 participants