MCPcopy Create free account
hub / github.com/nodejs/node / exec

Method exec

deps/npm/lib/commands/owner.js:75–85  ·  view source on GitHub ↗
([action, ...args])

Source from the content-addressed store, hash-verified

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()

Callers 1

execWorkspacesMethod · 0.95

Calls 3

lsMethod · 0.95
changeOwnersMethod · 0.95
usageErrorMethod · 0.80

Tested by

no test coverage detected