Giter Club home page Giter Club logo

cargo-wipe's Introduction

Cargo Wipe

Crates CI codecov license Crates.io
Cargo subcommand that recursively finds and optionally wipes all "target" or "node_modules" folders that are found in the current path.

Usage

Install

The Rust toolchain is a prerequisite.

cargo install cargo-wipe

Read the docs

cargo wipe --help

Use

To find build folders for <language> that can potentially be deleted run

cargo wipe <language>

where <language> is rust or node. For example:

cargo wipe rust

This will run in dry-run mode and just print the list of directories to delete. To actually delete them run it again with the -w flag.

cargo wipe rust -w

Directories are found according to the following logic:

  • rust: all directories called target containing a file called .rustc_info.json.
  • node: all directories called node_modules.

You can use the -i <path> argument to ignore certain paths.

Usage Example

Usage Example Screenshot

Contributions

Contributions are welcome and encouraged! See /issues for ideas, or suggest your own! If you're thinking to create a PR with large feature/change, please first discuss it in an issue.

PR Checks

    cargo make ci-flow

Releases

  • Update version in Cargo.toml

  • Update CHANGELOG.md

  • Commit

  • Add tag

    git tag -a vX.X.X
  • Push

    git push --follow-tags
  • Release
    Create a new release.
    publish.yml GitHub Action will pick it up and do the actual release to crates.io.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.