HEX
Server: LiteSpeed
System: Linux l24.yourwebhosting.net 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User: turkishi (1582)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //proc/self/root/opt/alt/alt-nodejs24/root/usr/lib/node_modules/npm/lib/commands/trust/index.js
const BaseCommand = require('../../base-cmd.js')

class Trust extends BaseCommand {
  static description = 'Create a trusted relationship between a package and a OIDC provider'
  static name = 'trust'
  static usage = null

  static subcommands = {
    github: require('./github.js'),
    gitlab: require('./gitlab.js'),
    circleci: require('./circleci.js'),
    list: require('./list.js'),
    revoke: require('./revoke.js'),
  }

  static async completion (opts) {
    const argv = opts.conf.argv.remain
    if (argv.length === 2) {
      return Object.keys(Trust.subcommands)
    }
    return []
  }
}

module.exports = Trust