UNPKG

505 BPlain TextView Raw
1#!/usr/bin/env node
2
3import * as yargs from 'yargs'
4import { del } from '../fs/del'
5import { runScript } from '../script'
6
7runScript(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
26 await del({ patterns: patterns as string[], ...opt })
27})