Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add qualicharge command line interface #68

Merged
merged 1 commit into from
May 30, 2024
Merged

Add qualicharge command line interface #68

merged 1 commit into from
May 30, 2024

Conversation

jmaupetit
Copy link
Member

@jmaupetit jmaupetit commented May 29, 2024

Purpose

We need a CLI for admin tasks, such as users and groups managements.

Proposal

  • add create-user command
  • add create-group command
  • add list-users command
  • add list-groups command
  • add update-user command
  • add update-group command
  • add delete-user command
  • add delete-group command
  • test all commands
  • create super user in make bootstrap

@jmaupetit
Copy link
Member Author

Current CLI usage:

 Usage: python -m qualicharge [OPTIONS] COMMAND [ARGS]...                       
                                                                                
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --install-completion          Install completion for the current shell.      │
│ --show-completion             Show completion for the current shell, to copy │
│                               it or customize the installation.              │
│ --help                        Show this message and exit.                    │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────╮
│ create-group   Create an API group.                                          │
│ create-user    Create an API user.                                           │
│ delete-group   Delete an API group.                                          │
│ delete-user    Delete an API user.                                           │
│ list-groups    List API groups.                                              │
│ list-users     List API users.                                               │
│ update-group   Update an API group.                                          │
│ update-user    Update an API user.                                           │
╰──────────────────────────────────────────────────────────────────────────────╯

With colors:

image

@jmaupetit jmaupetit marked this pull request as ready for review May 30, 2024 19:23
For now the CLI will be used to handle users/group management.
@jmaupetit jmaupetit merged commit c92153d into main May 30, 2024
9 checks passed
@jmaupetit jmaupetit deleted the add-cli branch May 30, 2024 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant