This file ( 1kB ) exceeds the allowed full mode (48 kb) size.
The editor full hight is disabled, only scrolling is allowed..
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height
mode, although some users like it.
#!/usr/bin/env node
//const os = require('os');
//const process = require('process');
//const cores = os.cpus().length < 4 ? 4 : os.cpus().length;
//process.env.UV_THREADPOOL_SIZE = cores;
//console.debug(`P3X sets UV_THREADPOOL_SIZE to ${cores} thread pool`)
if (!require('fs').existsSync(`${__dirname}/../node_modules`)) {
require('child_process').execSync(`cd ${__dirname}/.. && npm install --force --only=prod`, {
stdio: 'inherit'
});
}
const { program } = require('commander');
const utils = require('corifeus-utils');
const pkg = require(`../package.json`);
const mz = require('mz');
const start = async() => {
// command
// <command> required
// [command] optional
// [command ...] variable options
program
.version(pkg.version)
.usage('[options]')
;
require('../src/command/rm')
require('../src/command/npm')
require('../src/command/for')
require('../src/command/git')
require('../src/command/github')
require('../src/command/each')
require('../src/command/ncu')
require('../src/command/docker')
require('../src/command/server')
require('../src/command/redis')
require('../src/command/travis')
// redis-cli KEYS chrome:* | xargs redis-cli DEL
/*
const isInModule = await mz.fs.exists(`${__dirname}/../../node_modules`);
if (!isInModule) {
require('../src/command/pdf')
}
*/
program.parse(process.argv);
if (!process.argv.slice(2).length) {
program.outputHelp();
}
}
start();