Skip to content

feat: ftpusers get/list via get_ftpusers (with ftp_login filter) - #57

Merged
chmmou merged 1 commit into
mainfrom
feature/ftpusers-read
May 8, 2026
Merged

feat: ftpusers get/list via get_ftpusers (with ftp_login filter)#57
chmmou merged 1 commit into
mainfrom
feature/ftpusers-read

Conversation

@chmmou

@chmmou chmmou commented May 8, 2026

Copy link
Copy Markdown
Owner

Summary

Adds internal/ftpuser read module and the kasapi-cli ftpusers list|get subcommand tree wrapping get_ftpusers. The get form reuses the same endpoint with an ftp_login filter and unwraps the single-entry array, mirroring the mail accounts / accounts / databases pattern. List/singular share one struct; both ftp_password and the legacy ftp_passwort key are preserved for JSON/YAML round-trips and omitted from the table view.

Mapping tests cover the list, singular and empty-list fixtures.

Refs #11.

Adds internal/ftpuser read module and `kasapi-cli ftpusers list|get`
subcommand tree wrapping get_ftpusers. List returns the full
FTPUserList; `get <ftp-login>` reuses the same endpoint with an
ftp_login filter and unwraps the single-entry array, matching the
mail accounts / accounts / databases pattern. Both ftp_password and
the legacy ftp_passwort key are kept on the struct so a JSON/YAML
round-trip preserves the raw payload; both are omitted from the
table view.

Mapping tests cover the list, singular and empty-list fixtures
(testdata/ftpuser/get_ftpusers_response_success.xml,
get_ftpuser_response_success.xml,
get_ftpuser_response_success_empty_list.xml). Refs #11.
@chmmou
chmmou merged commit 66eceed into main May 8, 2026
1 check passed
@chmmou
chmmou deleted the feature/ftpusers-read branch May 8, 2026 20:58
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.

1 participant