@@ -69,11 +69,11 @@ func (cc *ClientCmd) ListClientsCmd() *cobra.Command {
69
69
mClients := mobileClientList .(* v1alpha1.MobileClientList )
70
70
var data [][]string
71
71
for _ , mClient := range mClients .Items {
72
- data = append (data , []string {mClient .Name , mClient .Spec .Name , mClient .Spec .ClientType , mClient .Spec .AppIdentifier })
72
+ data = append (data , []string {mClient .Name , mClient .Spec .Name , mClient .Spec .ClientType , mClient .Spec .AppIdentifier , strings . Join ( mClient . Spec . ExcludedServices , ", " ) })
73
73
}
74
74
table := tablewriter .NewWriter (out )
75
75
table .AppendBulk (data )
76
- table .SetHeader ([]string {"ID" , "Name" , "ClientType" , "AppIdentifier" })
76
+ table .SetHeader ([]string {"ID" , "Name" , "ClientType" , "AppIdentifier" , "ExcludedServices" })
77
77
table .Render ()
78
78
return nil
79
79
})
@@ -113,10 +113,10 @@ Run the "mobile get clients" command from this tool to get the client ID.`,
113
113
cc .Out .AddRenderer (command .Name (), "table" , func (out io.Writer , mobileClient interface {}) error {
114
114
mClient := mobileClient .(* v1alpha1.MobileClient )
115
115
var data [][]string
116
- data = append (data , []string {mClient .Name , mClient .Namespace , mClient .Spec .Name , mClient .Spec .ClientType , mClient .Spec .ApiKey , mClient .Spec .AppIdentifier })
116
+ data = append (data , []string {mClient .Name , mClient .Namespace , mClient .Spec .Name , mClient .Spec .ClientType , mClient .Spec .ApiKey , mClient .Spec .AppIdentifier , strings . Join ( mClient . Spec . ExcludedServices , ", " ) })
117
117
table := tablewriter .NewWriter (out )
118
118
table .AppendBulk (data )
119
- table .SetHeader ([]string {"ID" , "Namespace" , "Name" , "ClientType" , "ApiKey" , "AppIdentifier" })
119
+ table .SetHeader ([]string {"ID" , "Namespace" , "Name" , "ClientType" , "ApiKey" , "AppIdentifier" , "Excluded Services" })
120
120
table .Render ()
121
121
return nil
122
122
})
0 commit comments