@naturalcycles/nodejs-lib
Version:
Standard library for Node.js
27 lines (26 loc) • 677 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const yargs = require("yargs");
const del_1 = require("../fs/del");
const script_1 = require("../script");
(0, script_1.runScript)(async () => {
const { _: patterns, ...opt } = yargs.demandCommand(1).options({
verbose: {
type: 'boolean',
},
silent: {
type: 'boolean',
},
debug: {
type: 'boolean',
},
dry: {
type: 'boolean',
},
concurrency: {
type: 'number',
},
}).argv;
await (0, del_1.del)({ patterns: patterns, ...opt });
});