MCPcopy Create free account
hub / github.com/PolymathNetwork/polymath-core / selectModule

Function selectModule

CLI/commands/permission_manager.js:143–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141}
142
143async 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
152async function selectPermission(permissions) {
153 let options = permissions.map(function(p) {

Callers 1

changePermissionActionFunction · 0.85

Calls 1

Tested by

no test coverage detected