Repository navigation
fix(cli): render platform actions list as a table with pagination - #198
Merged
Merged
Conversation
Human output previously dumped a single unreadable line of JSON-ish text instead of a table. Adopts the same output-schema/pagination pattern used by domain/dns list and api search: the handler now returns a plain array (so human rendering can table it) and opts into --limit/--offset so the catalog can grow past its current 7 entries without dumping everything unpaginated.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves the UX and consistency of gddy platform actions list by returning a plain list payload that the CLI can render as a human-friendly table (with name/description columns), registering an output schema for --schema/help, and opting the command into cli-engine pagination so the catalog can grow without dumping unbounded output.
Changes:
- Return a plain array from
platform actions list(instead of{ "actions": [...] }) to align with other list-style commands and table rendering. - Register an output schema and default fields so human output can render
name/descriptionconsistently. - Enable cli-engine pagination for the list command (default limit 50, max 200).
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Copilot review feedback: the long help text still claimed the command prints "every action", which stops being true once the catalog grows past the new default_limit of 50.
qcai-godaddy
approved these changes
Aug 10, 2026
This was referenced Aug 11, 2026
This was referenced Aug 18, 2026
This was referenced Sep 10, 2026
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
gddy platform actions listdumped a single unreadable line of JSON-ish text in human mode instead of a table.domain list/dns list/api search) so human output can rendername/descriptionas columns, and registers an output schema for--schema/help.--limit/--offset, default 50, max 200) so the catalog can grow past its current 7 entries without dumping everything unpaginated.Test plan
cargo check/cargo clippy -- -D warnings/cargo fmt --check/cargo testall passgddy platform actions list --humanrenders a tablegddy platform actions list --human --limit 3/--offset 3page correctly, with a generated "next page" hintgddy platform actions list --jsonstill returns valid JSON (shape changed from{"actions": [...]}to a plain array underdata, consistent with other list commands)🤖 Generated with Claude Code