MTES-MCT / qualicharge

Améliorer la qualité globale du service de recharge pour véhicules électriques en analysant les données de supervision.
https://beta.gouv.fr/startups/qualicharge.html
MIT License
1 stars 1 forks source link

Add qualicharge command line interface #68

Closed jmaupetit closed 1 month ago

jmaupetit commented 1 month ago

Purpose

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

Proposal

jmaupetit commented 1 month ago

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