feat(cli): add hidden list/delete aliases for beta endpoints ls/rm (ENG-92294) - #538
Draft
blainekasten wants to merge 2 commits into
Draft
feat(cli): add hidden list/delete aliases for beta endpoints ls/rm (ENG-92294)#538blainekasten wants to merge 2 commits into
blainekasten wants to merge 2 commits into
Conversation
Keep `ls`/`rm` as the visible commands, accept `list`/`delete` without showing them in help, and normalize `rm` to `delete` in CLI telemetry. Co-authored-by: blaine <blaine@together.ai>
Broly Security ScanNote ✅ Clean scan Note Re-scan this PR anytime with
|
CI uses the human Rich formatter, which wraps the rm description across table borders so the contiguous help string never matches. Co-authored-by: blaine <blaine@together.ai>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tg beta endpoints ls/rmas the visible commands.list(already present) anddeletealiases so users coming from other CLI surfaces (list/delete) still work.deletefrom--helpthe same waylistis hidden (show=False).rmtodeletein CLI telemetry, matching the existingls→listand-d→deletemapping.Fixes ENG-92294.
Test plan
uv run pytest tests/cli/test_beta_endpoints.py tests/cli/test_beta_endpoints_rm.py tests/unit/test_cli_telemetry.py -n autotg beta endpoints --helpshowslsandrm/-d, notlistordelete(agent and Rich formatters)tg beta endpoints listandtg beta endpoints delete <id>invoke the same handlers asls/rmLinear Issue: ENG-92294