@@ -67,7 +67,7 @@ var groupsListCmd = &cobra.Command{
6767 Short : "List project groups" ,
6868 RunE : func (cmd * cobra.Command , args []string ) error {
6969 opts := utils .GetOutputOptions (cmd )
70- client , err := rootClient (opts )
70+ client , err := rootClient (cmd , opts )
7171 if err != nil || client == nil {
7272 return err
7373 }
@@ -107,7 +107,7 @@ var groupsGetCmd = &cobra.Command{
107107 Short : "Get project group details" ,
108108 RunE : func (cmd * cobra.Command , args []string ) error {
109109 opts := utils .GetOutputOptions (cmd )
110- client , err := rootClient (opts )
110+ client , err := rootClient (cmd , opts )
111111 if err != nil || client == nil {
112112 return err
113113 }
@@ -125,7 +125,7 @@ var groupsCreateCmd = &cobra.Command{
125125 Short : "Create a project group" ,
126126 RunE : func (cmd * cobra.Command , args []string ) error {
127127 opts := utils .GetOutputOptions (cmd )
128- client , err := rootClient (opts )
128+ client , err := rootClient (cmd , opts )
129129 if err != nil || client == nil {
130130 return err
131131 }
@@ -154,7 +154,7 @@ var groupsUpdateCmd = &cobra.Command{
154154 Short : "Update a project group" ,
155155 RunE : func (cmd * cobra.Command , args []string ) error {
156156 opts := utils .GetOutputOptions (cmd )
157- client , err := rootClient (opts )
157+ client , err := rootClient (cmd , opts )
158158 if err != nil || client == nil {
159159 return err
160160 }
@@ -192,7 +192,7 @@ var groupsDeleteCmd = &cobra.Command{
192192 if ! yes {
193193 return fmt .Errorf ("--yes is required to delete a project group" )
194194 }
195- client , err := rootClient (opts )
195+ client , err := rootClient (cmd , opts )
196196 if err != nil || client == nil {
197197 return err
198198 }
@@ -213,7 +213,7 @@ var groupsTopologyCmd = &cobra.Command{
213213 Short : "Show project group topology" ,
214214 RunE : func (cmd * cobra.Command , args []string ) error {
215215 opts := utils .GetOutputOptions (cmd )
216- client , err := rootClient (opts )
216+ client , err := rootClient (cmd , opts )
217217 if err != nil || client == nil {
218218 return err
219219 }
@@ -268,7 +268,7 @@ var groupsMembersAttachCmd = &cobra.Command{
268268 Short : "Attach a project or addon to a group" ,
269269 RunE : func (cmd * cobra.Command , args []string ) error {
270270 opts := utils .GetOutputOptions (cmd )
271- client , err := rootClient (opts )
271+ client , err := rootClient (cmd , opts )
272272 if err != nil || client == nil {
273273 return err
274274 }
@@ -313,7 +313,7 @@ var groupsMembersDetachCmd = &cobra.Command{
313313 Short : "Detach a project or addon from a group" ,
314314 RunE : func (cmd * cobra.Command , args []string ) error {
315315 opts := utils .GetOutputOptions (cmd )
316- client , err := rootClient (opts )
316+ client , err := rootClient (cmd , opts )
317317 if err != nil || client == nil {
318318 return err
319319 }
@@ -357,7 +357,7 @@ var groupsEnvGetCmd = &cobra.Command{
357357 Short : "Get shared environment variables" ,
358358 RunE : func (cmd * cobra.Command , args []string ) error {
359359 opts := utils .GetOutputOptions (cmd )
360- client , err := rootClient (opts )
360+ client , err := rootClient (cmd , opts )
361361 if err != nil || client == nil {
362362 return err
363363 }
@@ -394,7 +394,7 @@ JSON file may be either:
394394 or a plain object map: {"KEY":"VAL",...}` ,
395395 RunE : func (cmd * cobra.Command , args []string ) error {
396396 opts := utils .GetOutputOptions (cmd )
397- client , err := rootClient (opts )
397+ client , err := rootClient (cmd , opts )
398398 if err != nil || client == nil {
399399 return err
400400 }
@@ -423,7 +423,7 @@ var groupsEnvInjectCmd = &cobra.Command{
423423 Short : "Inject shared environment variables into members" ,
424424 RunE : func (cmd * cobra.Command , args []string ) error {
425425 opts := utils .GetOutputOptions (cmd )
426- client , err := rootClient (opts )
426+ client , err := rootClient (cmd , opts )
427427 if err != nil || client == nil {
428428 return err
429429 }
@@ -474,7 +474,7 @@ var groupsConnectCmd = &cobra.Command{
474474 Short : "Connect provider addon envs into a consumer project" ,
475475 RunE : func (cmd * cobra.Command , args []string ) error {
476476 opts := utils .GetOutputOptions (cmd )
477- client , err := rootClient (opts )
477+ client , err := rootClient (cmd , opts )
478478 if err != nil || client == nil {
479479 return err
480480 }
@@ -539,7 +539,7 @@ var groupsRedeployCmd = &cobra.Command{
539539 Short : "Redeploy application members in a project group" ,
540540 RunE : func (cmd * cobra.Command , args []string ) error {
541541 opts := utils .GetOutputOptions (cmd )
542- client , err := rootClient (opts )
542+ client , err := rootClient (cmd , opts )
543543 if err != nil || client == nil {
544544 return err
545545 }
@@ -568,7 +568,7 @@ var groupsResolveCmd = &cobra.Command{
568568 Short : "Resolve which group a member belongs to" ,
569569 RunE : func (cmd * cobra.Command , args []string ) error {
570570 opts := utils .GetOutputOptions (cmd )
571- client , err := rootClient (opts )
571+ client , err := rootClient (cmd , opts )
572572 if err != nil || client == nil {
573573 return err
574574 }
@@ -606,7 +606,7 @@ var groupsCandidatesCmd = &cobra.Command{
606606 Short : "List attachable projects and addons" ,
607607 RunE : func (cmd * cobra.Command , args []string ) error {
608608 opts := utils .GetOutputOptions (cmd )
609- client , err := rootClient (opts )
609+ client , err := rootClient (cmd , opts )
610610 if err != nil || client == nil {
611611 return err
612612 }
0 commit comments