Skip to content

Conversation

kga
Copy link
Member

@kga kga commented Sep 19, 2025

I added users subcommand

mkr users --help
NAME:
   mkr users - List users

USAGE:
   mkr users [command options] [--verbose | -v] [--format | -f <format>] [--jq <formula>]

DESCRIPTION:

    List the information of the users.
    Requests "GET /api/v0/users". See https://mackerel.io/api-docs/entry/users#list .


OPTIONS:
   --format value, -f value  Output format template
   --verbose, -v             Verbose output mode
   --jq value                Filter response values using jq syntax

kga and others added 4 commits September 19, 2025 18:37
- Add FindUsers() method to Client interface
- Implement FindUsers method and MockFindUsers option in MockClient
- Prepare for users command implementation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Add users/command.go with CLI command definition
- Add users/app.go with User struct and findUsers implementation
- Add users/app_test.go with comprehensive test coverage
- Support default, verbose, custom format and jq filtering
- Follow existing patterns from hosts command

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Import users package in commands.go
- Add users.CommandUsers to Commands slice
- Enable 'mkr users' command for listing organization members

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@kga kga marked this pull request as ready for review September 19, 2025 09:47
@kga kga changed the title Add users subcommad. Add users subcommand. Sep 19, 2025
@kga kga marked this pull request as draft September 22, 2025 08:34
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