From aa49a01e6f8f2bbb1f958cde05021009ff5f665b Mon Sep 17 00:00:00 2001 From: Rita Zerrizuela Date: Fri, 26 Feb 2021 16:16:00 -0300 Subject: [PATCH] Rename clientView to applicationView --- internal/display/clients.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/display/clients.go b/internal/display/clients.go index cbe75c65d..23f41f61e 100644 --- a/internal/display/clients.go +++ b/internal/display/clients.go @@ -17,7 +17,7 @@ const ( quickstartsGeneric = "https://auth0.com/docs/quickstarts" ) -type clientView struct { +type applicationView struct { Name string Type string ClientID string @@ -26,7 +26,7 @@ type clientView struct { revealSecret bool } -func (v *clientView) AsTableHeader() []string { +func (v *applicationView) AsTableHeader() []string { if v.revealSecret { return []string{"Name", "Type", "ClientID", "Client Secret", "Callbacks"} } @@ -34,7 +34,7 @@ func (v *clientView) AsTableHeader() []string { } -func (v *clientView) AsTableRow() []string { +func (v *applicationView) AsTableRow() []string { if v.revealSecret { return []string{ v.Name, @@ -108,7 +108,7 @@ func (r *Renderer) ApplicationList(clients []*management.Client) { func (r *Renderer) ApplicationCreate(client *management.Client, revealSecrets bool) { r.Heading(ansi.Bold(r.Tenant), "application created\n") - v := &clientView{ + v := &applicationView{ revealSecret: revealSecrets, Name: auth0.StringValue(client.Name), Type: appTypeFor(client.AppType), @@ -125,7 +125,7 @@ func (r *Renderer) ApplicationCreate(client *management.Client, revealSecrets bo func (r *Renderer) ApplicationUpdate(client *management.Client, revealSecrets bool) { r.Heading(ansi.Bold(r.Tenant), "application updated\n") - v := &clientView{ + v := &applicationView{ revealSecret: revealSecrets, Name: auth0.StringValue(client.Name), Type: appTypeFor(client.AppType),