(clients []*management.Client, revealSecrets bool)
| 151 | } |
| 152 | |
| 153 | func (r *Renderer) ApplicationList(clients []*management.Client, revealSecrets bool) { |
| 154 | resource := "applications" |
| 155 | |
| 156 | r.Heading(fmt.Sprintf("%s (%v)", resource, len(clients))) |
| 157 | |
| 158 | if len(clients) == 0 { |
| 159 | r.EmptyState(resource, "Use 'auth0 apps create' to add one") |
| 160 | return |
| 161 | } |
| 162 | |
| 163 | var res []View |
| 164 | for _, c := range clients { |
| 165 | if !revealSecrets { |
| 166 | c.ClientSecret = auth0.String("") |
| 167 | } |
| 168 | |
| 169 | res = append(res, makeApplicationView(c, revealSecrets)) |
| 170 | } |
| 171 | |
| 172 | r.Results(res) |
| 173 | } |
| 174 | |
| 175 | func (r *Renderer) ApplicationShow(client *management.Client, revealSecrets bool) { |
| 176 | r.Heading("application") |
no test coverage detected