HEX
Server: LiteSpeed
System: Linux CentOS-79-64-minimal 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: vishn3436 (5293)
PHP: 8.0.15
Disabled: NONE
Upload Files
File: //data/Geometra-Web-Client-master/node_modules/.bin/opencollective
#!/usr/bin/env node
'use strict';

require('babel-polyfill');

var _path = require('path');

// This command will be run if no other sub command is specified


/**
 * Yes, this is totally copied from
 * https://github.com/zeit/now-cli/blob/b1663954fe935beb0244002625e05402f59bd20e/bin/now.js
 */

// Make sure we have new Set() and new Map() for Node 0.10.x
var defaultCommand = 'collective';

// Native


var commands = new Set(['help', 'info', 'stats', 'list', 'donate', 'ls', 'rm', 'remove', 'cc', 'billing', 'show', 'open', 'postinstall', 'setup', 'slack', 'support', 'email', 'twitter']);

var aliases = new Map([['ls', 'list'], ['rm', 'remove'], ['cc', 'billing'], ['info', 'collective'], ['stats', 'collective']]);

var cmd = defaultCommand;
var args = process.argv.slice(2);
var index = args.findIndex(function (a) {
  return commands.has(a);
});

if (index > -1) {
  cmd = args[index];
  args.splice(index, 1);

  if (cmd === 'help') {
    if (index < args.length && commands.has(args[index])) {
      cmd = args[index];
      args.splice(index, 1);
    } else {
      cmd = defaultCommand;
    }

    args.unshift('--help');
  }

  cmd = aliases.get(cmd) || cmd;
}

var bin = (0, _path.resolve)(__dirname, '../commands/', cmd + '.js');

// Prepare process.argv for subcommand
process.argv = process.argv.slice(0, 2).concat(args);

// Load sub command
// With custom parameter to make "pkg" happy
require(bin, 'may-exclude');