Skip to content

Nejat/cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cleaner

Cleaner is a utility for cleaning up build artifacts in bulk.

It recursively looks for specific build folders, at a given path, for the following project types:

  • Rust - target
  • .Net - bin, obj
  • Web - node_modules

Install

cargo install cleaner

or

cargo install --git https://github.com/nejat/cleaner.git

* requires rust and cargo - Rust Install Instructions

Usage

cleaner 0.5.0
Cleaner is a utility for cleaning up build artifacts in bulk

USAGE:
    cleaner <SUBCOMMAND>

OPTIONS:
    -h, --help       Print help information
    -V, --version    Print version information

SUBCOMMANDS:
    builds       Manage build artifacts of supported platforms
    empties      Manage empty folders
    help         Print this message or the help of the given subcommand(s)
    supported    List supported development platforms

Commands

Builds

Manages build artifacts of configured platforms

> cleaner builds
cleaner-builds 0.5.0
Manage build artifacts of supported platforms

USAGE:
    cleaner builds [OPTIONS] [SUBCOMMAND]

OPTIONS:
    -h, --help
            Print help information

    -p, --path <PATH>
            Optionally specify target path, defaults to current folder

            [default: .]

    -t, --types <TYPES>
            Optionally specify supported development platform(s), defaults to "all"

            * use "supported" command to see a list of all supported
            development platforms

            [default: all]

    -V, --version
            Print version information

    -y, --confirmed
            Executes remove action non-interactively,, defaults to interactive

SUBCOMMANDS:
    help
            Print this message or the help of the given subcommand(s)
    list
            List matching folders, default subcommand
    remove
            Remove matching folders

Empties

Manages empty folders, skips hidden folder by default

> cleaner empties
cleaner-empties 0.5.0
Manage empty folders

USAGE:
    cleaner empties [OPTIONS] [SUBCOMMAND]

OPTIONS:
    -h, --help           Print help information
    -p, --path <PATH>    Optionally specify target path, defaults to current folder [default: .]
    -s, --hidden         Includes empty hidden folders, i.e. folders that start with a '.'
    -V, --version        Print version information
    -y, --confirmed      Executes remove action non-interactively,, defaults to interactive

SUBCOMMANDS:
    help      Print this message or the help of the given subcommand(s)
    list      List matching folders, default subcommand
    remove    Remove matching folders

Supported

Lists all configured development platforms

> cleaner supported

Supported Platforms

Initial/Default list of supported platforms


Platform: .Net
  Build Artifacts: bin & obj
  Matched On: *.sln & *.csproj

Platform: Rust
  Build Artifacts: target
  Matched On: cargo.toml

Platform: Web
  Build Artifacts: node_modules
  Matched On: package.json

* deleting or resetting configuration will re-create this list

Road Map

  • list projects with build artifacts
  • remove build artifacts from projects
  • list empty folders
  • remove empty folders
  • configuration to support custom list of development platforms
  • wild card support for matching files used to determine platform type
  • path command to show path of supported configuration json
  • new commands to manage configuration list
  • will consider new logic for detecting build artifacts on a case by case bases, will consider pull requests

About

a utility for cleaning up build artifacts and querying local repos in bulk

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages