1 | #!/usr/bin/env node
|
2 | "use strict";
|
3 | Object.defineProperty(exports, "__esModule", { value: true });
|
4 | const yargs = require("yargs");
|
5 | const del_1 = require("../fs/del");
|
6 | const script_1 = require("../script");
|
7 | (0, script_1.runScript)(async () => {
|
8 | const { _: patterns, ...opt } = yargs.demandCommand(1).options({
|
9 | verbose: {
|
10 | type: 'boolean',
|
11 | },
|
12 | silent: {
|
13 | type: 'boolean',
|
14 | },
|
15 | debug: {
|
16 | type: 'boolean',
|
17 | },
|
18 | dry: {
|
19 | type: 'boolean',
|
20 | },
|
21 | concurrency: {
|
22 | type: 'number',
|
23 | },
|
24 | }).argv;
|
25 | await (0, del_1.del)({ patterns: patterns, ...opt });
|
26 | });
|