([action, ...args])
| 73 | } |
| 74 | |
| 75 | async exec ([action, ...args]) { |
| 76 | if (action === 'ls' || action === 'list') { |
| 77 | await this.ls(args[0]) |
| 78 | } else if (action === 'add') { |
| 79 | await this.changeOwners(args[0], args[1], 'add') |
| 80 | } else if (action === 'rm' || action === 'remove') { |
| 81 | await this.changeOwners(args[0], args[1], 'rm') |
| 82 | } else { |
| 83 | throw this.usageError() |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | async execWorkspaces ([action, ...args]) { |
| 88 | await this.setWorkspaces() |
no test coverage detected