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:
@ -45,6 +45,11 @@ func newOrgMembersAddCmd() cli.Command {
|
||||
EnvVar: "INFLUX_ORG_ID",
|
||||
Destination: ¶ms.OrgID,
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "owner",
|
||||
Usage: "Set new member as an owner",
|
||||
Destination: ¶ms.IsOwner,
|
||||
},
|
||||
),
|
||||
Action: func(ctx *cli.Context) error {
|
||||
client := org.Client{
|
||||
|
Reference in New Issue
Block a user