prune

March 13, 2022 ยท View on GitHub

ci Latest Version License Repo Size

An extremely fast tool for prune your file-system written in V

The tool will traverse the target directory, look for files/directories that can be deleted (eg. node_modules/bower_components/.temp/.dist) and delete them to free up your hard disk space.

Feature

  • Remove extra stuff to make room for your hard drive
  • Written in V
  • Coroutine support, make full use of CPU. It's fast

Install

  1. Cask

    cask install github.com/axetroy/prune.v
    
  2. Shell (Mac/Linux)

    curl -fsSL https://github.com/release-lab/install/raw/v1/install.sh | bash -s -- -r=axetroy/prune.v -r=prune
    
  3. PowerShell (Windows):

    $r="axetroy/prune.v";$e="prune";iwr https://github.com/release-lab/install/raw/v1/install.ps1 -useb | iex
    
  4. Github release page

    download the executable file and put the executable file to $PATH

Usage

$ prune --help
prune - A tool for prune your file-system

USAGE:
  prune [OPTIONS] <dirs>

OPTIONS:
  --help        print help information
  --version     print version information
  --delete      whether to delete the file

EXAMPLE:
  prune ./dir1 ./dir2 ./dir3

SOURCE CODE:
  https://github.com/axetroy/prune
$ prune ./src

Build from source

$ make

LICENSE

The MIT License