#recursion #swim #projects #clean

app swim-clean-all

Recursively cleans swim projects

2 releases

new 0.1.1 Jan 4, 2025
0.1.0 Jan 4, 2025

#305 in Filesystem

Download history 242/week @ 2025-01-01

242 downloads per month

GPL-3.0-or-later

78KB
160 lines

swim-clean-all

swim subcommand inspired by the amazing cargo-clean-all for Rust (although they probably have a better implementation than the hacky code I wrote!).

Showcase

Install

Install from <crates.io>:

cargo install swim-clean-all

(Sorry, no cargo binstall magic yet.)

Usage

$ swim clean-all --help
Usage: swim-clean-all [<search_root>] [--skip <skip...>] [--max-depth <max-depth>]

Recursively clean all swim projects in a given directory that match the specified criteria

Positional Arguments:
  search_root       the root directory to recursively search for swim projects;
                    defaults to the cwd

Options:
  --skip            directories to skip when traversing
  --max-depth       maximum depth search limit; defaults to 100
  --help, help      display usage information

Note that cleaning a project will erase the entire build folder instead of calling swim clean -- I will add support for this customization if requested.

Dependencies

~7–16MB
~208K SLoC