@naturalcycles/nodejs-lib
Version:
Standard library for Node.js
28 lines (24 loc) • 505 B
text/typescript
#!/usr/bin/env node
import * as yargs from 'yargs'
import { del } from '../fs/del'
import { runScript } from '../script'
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 del({ patterns: patterns as string[], ...opt })
})