@@ -26,12 +26,12 @@ func NewSiteCmd() *cobra.Command {
2626 Example : heredoc .Doc (`
2727 $ lr get site --all
2828 All sites:
29- +--------+-----------------+-------------------------+-----------+
30- | ID | NAME | DOMAIN | PLAN |
31- +--------+-----------------+-------------------------+-----------+
32- | 111111 | new-test1 | https://mail7.io | free |
33- | 122222 | my-app-final | loginradius.com | business |
34- | 142670 | trail-pro | https://loginradius.com | business |
29+ +--------+-----------------+-------------------------+---------------- +
30+ | ID | NAME | DOMAIN | PLAN |
31+ +--------+-----------------+-------------------------+---------------- +
32+ | 111111 | new-test1 | https://mail7.io | free |
33+ | 122222 | my-app-final | loginradius.com | developer pro |
34+ | 142670 | trail-pro | https://loginradius.com | developer pro |
3535
3636 $ lr get site --active
3737 Current site:
@@ -70,7 +70,11 @@ func getSite() error {
7070 var data [][]string
7171 fmt .Println ("All sites: " )
7272 for _ , site := range AppInfo {
73- data = append (data , []string {strconv .FormatInt (site .Appid , 10 ), site .Appname , site .Domain , site .Productplan .Name })
73+ ProductPlan := site .Productplan .Name
74+ if ProductPlan == "business" {
75+ ProductPlan = "developer pro"
76+ }
77+ data = append (data , []string {strconv .FormatInt (site .Appid , 10 ), site .Appname , site .Domain , ProductPlan })
7478 }
7579 table := tablewriter .NewWriter (os .Stdout )
7680 table .SetHeader ([]string {"ID" , "Name" , "Domain" , "Plan" })
0 commit comments