feat: allow setting membership type in influx org members add (#402)

* add owners endpoints to cli.yml

* run make openapi and mock

* add owner listing, adding and removing

* fix: update tests to remove getUser indirection
This commit is contained in:
Andrew Lee
2022-06-28 16:06:58 -06:00
committed by GitHub
parent 56a8276a4a
commit e5707cd63c
9 changed files with 1396 additions and 106 deletions

View File

@ -45,6 +45,11 @@ func newOrgMembersAddCmd() cli.Command {
EnvVar: "INFLUX_ORG_ID",
Destination: &params.OrgID,
},
&cli.BoolFlag{
Name: "owner",
Usage: "Set new member as an owner",
Destination: &params.IsOwner,
},
),
Action: func(ctx *cli.Context) error {
client := org.Client{