|
@@ -62,7 +62,7 @@ func NewRoleCommands() cli.Command {
|
|
|
cli.StringFlag{Name: "path", Value: "", Usage: "Path granted for the role to access"},
|
|
cli.StringFlag{Name: "path", Value: "", Usage: "Path granted for the role to access"},
|
|
|
cli.BoolFlag{Name: "read", Usage: "Grant read-only access"},
|
|
cli.BoolFlag{Name: "read", Usage: "Grant read-only access"},
|
|
|
cli.BoolFlag{Name: "write", Usage: "Grant write-only access"},
|
|
cli.BoolFlag{Name: "write", Usage: "Grant write-only access"},
|
|
|
- cli.BoolFlag{Name: "readwrite", Usage: "Grant read-write access"},
|
|
|
|
|
|
|
+ cli.BoolFlag{Name: "readwrite, rw", Usage: "Grant read-write access"},
|
|
|
},
|
|
},
|
|
|
Action: actionRoleGrant,
|
|
Action: actionRoleGrant,
|
|
|
},
|
|
},
|
|
@@ -74,7 +74,7 @@ func NewRoleCommands() cli.Command {
|
|
|
cli.StringFlag{Name: "path", Value: "", Usage: "Path revoked for the role to access"},
|
|
cli.StringFlag{Name: "path", Value: "", Usage: "Path revoked for the role to access"},
|
|
|
cli.BoolFlag{Name: "read", Usage: "Revoke read access"},
|
|
cli.BoolFlag{Name: "read", Usage: "Revoke read access"},
|
|
|
cli.BoolFlag{Name: "write", Usage: "Revoke write access"},
|
|
cli.BoolFlag{Name: "write", Usage: "Revoke write access"},
|
|
|
- cli.BoolFlag{Name: "readwrite", Usage: "Revoke read-write access"},
|
|
|
|
|
|
|
+ cli.BoolFlag{Name: "readwrite, rw", Usage: "Revoke read-write access"},
|
|
|
},
|
|
},
|
|
|
Action: actionRoleRevoke,
|
|
Action: actionRoleRevoke,
|
|
|
},
|
|
},
|