uselagoon / lagoon-cli

A CLI for Lagoon - Docker Build and Deploy System for Kubernetes
https://uselagoon.github.io/lagoon-cli
MIT License
24 stars 14 forks source link

fix: list and get environment and project to display same data #362

Closed shreddedbacon closed 3 months ago

shreddedbacon commented 4 months ago

General Checklist

Updates the list and get environment and project commands to include the same information. Extends the get commands with a --wide flag that will extend the data with more fields if required.

$ lagoon list projects
ID  PROJECTNAME GITURL                                      PRODUCTIONENVIRONMENT   PRODUCTIONROUTE         DEVENVIRONMENTS
1   test        git@github.com:shreddedbacon/d8-example.git main                    https://example.com     3/5
2   test1       git@github.com:shreddedbacon/d8-example.git main                    https://example2.com    0/5
3   test2       git@github.com:shreddedbacon/d8-example.git main                    https://example3.com    0/5
14  test3       git@github.com:shreddedbacon/d8-example.git main                    https://example4.com    0/5
15  test4       git@github.com:shreddedbacon/d8-example.git main                    https://example5.com    0/5

$ lagoon get project -p test
ID  PROJECTNAME GITURL                                      PRODUCTIONENVIRONMENT   PRODUCTIONROUTE     DEVENVIRONMENTS
1   test        git@github.com:shreddedbacon/d8-example.git main                    https://example.com 3/5

$ lagoon get project -p test --wide
ID  PROJECTNAME GITURL                                      PRODUCTIONENVIRONMENT   PRODUCTIONROUTE     DEVENVIRONMENTS AUTOIDLE    BRANCHES                                        PULLREQUESTS                                    ROUTERPATTERN   FACTSUI PROBLEMSUI  DEPLOYMENTSDISABLED
1   test        git@github.com:shreddedbacon/d8-example.git main                    https://example.com 3/5             true        This project is configured with DeployTargets   This project is configured with DeployTargets   -               false   false       false

Closing issues

closes #152