UNPKG

667 BJavaScriptView Raw
1#!/usr/bin/env node
2"use strict";
3Object.defineProperty(exports, "__esModule", { value: true });
4const yargs = require("yargs");
5const del_1 = require("../fs/del");
6const script_1 = require("../script");
7script_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 del_1.del({ patterns: patterns, ...opt });
26});