Lines Matching defs:conf
17 const argv = opts.conf.argv.remain
52 const conf = this.config()
54 const tokens = await pulseTillDone.withPromise(profile.listTokens(conf))
55 if (conf.json) {
58 } else if (conf.parseable) {
96 const conf = this.config()
100 const tokens = await pulseTillDone.withPromise(profile.listTokens(conf))
121 return otplease(this.npm, conf, c => profile.removeToken(key, c))
124 if (conf.json) {
126 } else if (conf.parseable) {
134 const conf = this.config()
135 const cidr = conf.cidr
136 const readonly = conf.readOnly
142 otplease(this.npm, conf, c => profile.createToken(password, readonly, validCIDR, c))
146 if (conf.json) {
148 } else if (conf.parseable) {
160 const conf = { ...this.npm.flatOptions }
161 const creds = this.npm.config.getCredentialsByURI(conf.registry)
163 conf.auth = { token: creds.token }
165 conf.auth = {
173 conf.auth = {
180 conf.auth = {}
183 if (conf.otp) {
184 conf.auth.otp = conf.otp
186 return conf