feat: add mail lists get subcommand - #70
Merged
Merged
Conversation
Wires get_mailinglists with a mailinglist_name filter into the mailinglist module and exposes it as `kasapi-cli mail lists get <name>`, rounding out the read surface tracked by #9. The KAS endpoint still wraps the singular result in an array; Client.Get unwraps it and surfaces an empty result as a not-found error, mirroring mailforward.Client.Get. Closes #9.
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
Adds the singular
kasapi-cli mail lists get <name>variant: the KASget_mailinglistsendpoint accepts an optionalmailinglist_namefilter, the response is still array-shaped, and
Client.Getunwrapsthe single-entry result (empty array → not-found), mirroring
mailforward.Client.Get.Live-verified against the production KAS endpoint with both an empty
account (server returns
[]→ typed not-found) and a real list(
olbaflinx-chm-projects-de).Closes #9.