@messageflow/clean-cli
v0.0.3
Published
CLI for @messageflow/clean
Downloads
9
Maintainers
Readme
Yet another opinionated CLI to reset your working directory with @messageflow/clean.
Table of contents
Pre-requisites
Setup
Install
Run with npx (recommended)
# Run CLi with npx
$ npx -p @messageflow/clean-cli -- clean
Or, install globally
# Install via NPM globally
$ npm install --global @messageflow/clean-cli
Usage
With npx (recommended)
$ npx -p @messageflow/clean-cli -- clean --help
Usage
$ clean <path|glob> ...
Options
-i, --file Specify the path to read \`.gitignore\`
-p, --path Specify the glob patterns to delete files/ folders.
-f, --force Allow deleting the current working directory and outside
-d, --dry-run List what would be deleted instead of deleting
Examples
$ clean .
$ clean -i ./.gitignore
$ clean -i ./.gitignore -d
$ clean -p "**/src/**/*.js,**/src/**/*.d.ts,!gulpfile.js"
License
MIT License © Rong Sen Ng