@@ -36,14 +36,14 @@ type TreeSpace struct {
3636type TreeApp struct {
3737 ID string `json:"id"`
3838 Name string `json:"name"`
39- BackupIconUrl string `json:"buildpack_icon_url"`
39+ BackupIconURL string `json:"buildpack_icon_url"`
4040}
4141
4242// TreeService is a service instance node of the tree structure.
4343type TreeService struct {
4444 ID string `json:"id"`
4545 Name string `json:"name"`
46- ServiceIconUrl string `json:"service_icon_url"`
46+ ServiceIconURL string `json:"service_icon_url"`
4747}
4848
4949// Tree renders the org tree for the current user.
@@ -97,7 +97,7 @@ func renderTree(orgs []TreeOrg, depth int) {
9797 if lastOrg {
9898 output += bold (" Spaces\n " )
9999 } else {
100- output += bold ("| Spaces\n " )
100+ output += bold ("│ Spaces\n " )
101101 }
102102
103103 for j , s := range o .Spaces {
@@ -106,7 +106,7 @@ func renderTree(orgs []TreeOrg, depth int) {
106106 if lastOrg {
107107 output += " "
108108 } else {
109- output += "| "
109+ output += "│ "
110110 }
111111
112112 if lastSpace {
@@ -119,13 +119,13 @@ func renderTree(orgs []TreeOrg, depth int) {
119119 if lastOrg {
120120 output += " "
121121 } else {
122- output += "| "
122+ output += "│ "
123123 }
124124
125125 if lastSpace {
126126 output += bold (" Apps\n " )
127127 } else {
128- output += bold ("| Apps\n " )
128+ output += bold ("│ Apps\n " )
129129 }
130130
131131 for k , a := range s .Applications {
@@ -134,13 +134,13 @@ func renderTree(orgs []TreeOrg, depth int) {
134134 if lastOrg {
135135 output += " "
136136 } else {
137- output += "| "
137+ output += "│ "
138138 }
139139
140140 if lastSpace {
141141 output += " "
142142 } else {
143- output += "| "
143+ output += "│ "
144144 }
145145
146146 if lastApp {
@@ -155,13 +155,13 @@ func renderTree(orgs []TreeOrg, depth int) {
155155 if lastOrg {
156156 output += " "
157157 } else {
158- output += "| "
158+ output += "│ "
159159 }
160160
161161 if lastSpace {
162162 output += bold (" Services\n " )
163163 } else {
164- output += bold ("| Services\n " )
164+ output += bold ("│ Services\n " )
165165 }
166166
167167 for k , si := range s .ServiceInstances {
@@ -170,13 +170,13 @@ func renderTree(orgs []TreeOrg, depth int) {
170170 if lastOrg {
171171 output += " "
172172 } else {
173- output += "| "
173+ output += "│ "
174174 }
175175
176176 if lastSpace {
177177 output += " "
178178 } else {
179- output += "| "
179+ output += "│ "
180180 }
181181
182182 if lastService {
0 commit comments