Skip to content

fix(cli): render platform actions list as a table with pagination - #198

Merged
jpage-godaddy merged 2 commits into
mainfrom
actions-list-pagination
Aug 11, 2026
Merged

jpage-godaddy merged 2 commits into
mainfrom
actions-list-pagination

Conversation

@jpage-godaddy

Copy link
Copy Markdown
Collaborator

Summary

  • gddy platform actions list dumped a single unreadable line of JSON-ish text in human mode instead of a table.
  • Returns a plain array from the handler (matching domain list/dns list/api search) so human output can render name/description as columns, and registers an output schema for --schema/help.
  • Opts into cli-engine's pagination (--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 test all pass
  • gddy platform actions list --human renders a table
  • gddy platform actions list --human --limit 3 / --offset 3 page correctly, with a generated "next page" hint
  • gddy platform actions list --json still returns valid JSON (shape changed from {"actions": [...]} to a plain array under data, consistent with other list commands)

🤖 Generated with Claude Code

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.
Copilot AI lite review requested due to automatic review settings August 10, 2026 18:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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/description consistently.
  • 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.

Comment thread rust/src/actions_catalog/mod.rs Resolved
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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

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.

3 participants