1const Npm = require('../npm.js') 2const BaseCommand = require('../base-command.js') 3 4class Get extends BaseCommand { 5 static description = 'Get a value from the npm configuration' 6 static name = 'get' 7 static usage = ['[<key> ...] (See `npm config`)'] 8 static params = ['long'] 9 static ignoreImplicitWorkspace = false 10 11 // TODO 12 /* istanbul ignore next */ 13 static async completion (opts) { 14 const Config = Npm.cmd('config') 15 return Config.completion(opts) 16 } 17 18 async exec (args) { 19 return this.npm.exec('config', ['get'].concat(args)) 20 } 21} 22module.exports = Get 23