()
| 40 | args = Option.Rest(); |
| 41 | |
| 42 | async execute() { |
| 43 | if (this.args.length === 0) |
| 44 | throw new UsageError(`No package managers specified`); |
| 45 | |
| 46 | await Promise.all(this.args.map(arg => { |
| 47 | if (arg.endsWith(`.tgz`)) { |
| 48 | return this.installFromTarball(path.resolve(this.context.cwd, arg)); |
| 49 | } else { |
| 50 | return this.installFromDescriptor(specUtils.parseSpec(arg, `CLI arguments`, {enforceExactVersion: false})); |
| 51 | } |
| 52 | })); |
| 53 | } |
| 54 | |
| 55 | log(locator: Locator) { |
| 56 | if (this.cacheOnly) { |
nothing calls this directly
no test coverage detected