Skip to content

Commit

Permalink
Rename clientView to applicationView
Browse files Browse the repository at this point in the history
  • Loading branch information
Widcket committed Feb 26, 2021
1 parent 838cfc9 commit aa49a01
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/display/clients.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const (
quickstartsGeneric = "https://auth0.com/docs/quickstarts"
)

type clientView struct {
type applicationView struct {
Name string
Type string
ClientID string
Expand All @@ -26,15 +26,15 @@ 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"}
}
return []string{"Name", "Type", "Client ID", "Callbacks"}

}

func (v *clientView) AsTableRow() []string {
func (v *applicationView) AsTableRow() []string {
if v.revealSecret {
return []string{
v.Name,
Expand Down Expand Up @@ -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),
Expand All @@ -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),
Expand Down

0 comments on commit aa49a01

Please sign in to comment.