(args)
| 49 | } |
| 50 | |
| 51 | async exec (args) { |
| 52 | if (args.length === 0) { |
| 53 | return this.list() |
| 54 | } |
| 55 | switch (args[0]) { |
| 56 | case 'list': |
| 57 | case 'ls': |
| 58 | return this.list() |
| 59 | case 'rm': |
| 60 | case 'delete': |
| 61 | case 'revoke': |
| 62 | case 'remove': |
| 63 | return this.rm(args.slice(1)) |
| 64 | case 'create': |
| 65 | return this.create(args.slice(1)) |
| 66 | default: |
| 67 | throw this.usageError(`${args[0]} is not a recognized subcommand.`) |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | async list () { |
| 72 | const json = this.npm.config.get('json') |
nothing calls this directly
no test coverage detected