()
| 141 | } |
| 142 | |
| 143 | async function selectModule() { |
| 144 | let modules = await getModulesWithPermissions(); |
| 145 | let options = modules.map(function(m) { |
| 146 | return m.name; |
| 147 | }); |
| 148 | let index = readlineSync.keyInSelect(options, 'Select a module:', {cancel: false}); |
| 149 | return modules[index]; |
| 150 | } |
| 151 | |
| 152 | async function selectPermission(permissions) { |
| 153 | let options = permissions.map(function(p) { |
no test coverage detected