([cmd, orgname, username, role])
| 32 | } |
| 33 | |
| 34 | async exec ([cmd, orgname, username, role]) { |
| 35 | return otplease(this.npm, { |
| 36 | ...this.npm.flatOptions, |
| 37 | }, opts => { |
| 38 | switch (cmd) { |
| 39 | case 'add': |
| 40 | case 'set': |
| 41 | return this.set(orgname, username, role, opts) |
| 42 | case 'rm': |
| 43 | return this.rm(orgname, username, opts) |
| 44 | case 'ls': |
| 45 | return this.ls(orgname, username, opts) |
| 46 | default: |
| 47 | throw this.usageError() |
| 48 | } |
| 49 | }) |
| 50 | } |
| 51 | |
| 52 | async set (org, user, role, opts) { |
| 53 | role = role || 'developer' |
nothing calls this directly
no test coverage detected