Repository navigation
Add platform users list command - #17
Merged
Merged
Conversation
Documents the conventions established by the platform env commands so new commands are consistent without re-deriving them each time. The workflow starts with `oclif generate command <topic>:<subtopic>:<verb>` to create the command and test files, then replaces their contents with the templates in templates/ (one per command shape, plus a test template). References cover: * flags.md - kebab-case flags mapped to camelCase API fields, the shared alias/org flags, exactlyOne id-or-name groups, and the reserved short chars * testing.md - the Mocha/Chai/Sinon harness, and keeping suites to a limited set of tests covering core functionality rather than every permutation * linting.md - verifying via npm test (posttest runs lint), and the perfectionist sort-objects/sort-union-types rules that fail most often * openapi.md - spec URLs and mapping an operation to a command Commands in this project follow the Solace Cloud OpenAPI specs at https://api.solace.dev/cloud/page/openapi-specifications Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Wraps GET /api/v2/platform/users (Beta), which requires the iam_users:get token permission. Supports the endpoint's filters: --name and --email match on partial strings, and --id, --role, and --group are repeatable flags that map to the ids, roles, and groups array query parameters. The query string is built with URLSearchParams so repeated keys and encoding are handled correctly. Paging uses the shared paginationFlags/fetchPages/createTableWriter helpers, so --all streams rows as each page arrives. The README is left to the release flow; regenerating it now would also sweep in unrelated broker plugin version drift. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
No description provided.