Coder Social home page Coder Social logo

bdeering1 / polykill Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 1.0 125 KB

Command line utility for removing dependencies and build artifacts from unused projects.

Home Page: https://crates.io/crates/polykill

License: MIT License

Rust 100.00%
cargo cli dotnet filesystem gradle mix node tools

polykill's Introduction

Polykill

Lightweight utility for removing unwanted dependencies and build artifacts from local projects. Inspired by npkill.

Supported project types:

  • Cargo
  • Node
  • Mix
  • .NET Core
  • Gradle
  • Composer
  • Misc. (see "Addional Information")

Installation

cargo install polykill

Usage

polykill [OPTIONS] [DIR]

Polykill will recursively search for projects in the provided directory and output a list of all projects found. If no directory is provided, the current directory will be searched.

When the search has completed, navigate the menu using the following controls:

Key Bind Action
↓, ↑, ←, →, h, j, k, l select project
enter, del remove artifacts
esc, q exit

Removing artifacts involves removing the build/dependency directories associated with a project type.

Warning for Node projects: Some Node applications need their node_modules directory to work and deleting it may break them.

Options

Argument Description
-v, --verbose Verbose output
-s, --skip-empty Hide projects with zero possible disk savings
      --no-vcs Include projects without version control (will slow down search)
-u, --unsorted Don't sort projects
-h, --help Print help
-V, --version Print version

*supported version control systems are: git, svn, and mercurial

Additional Information

How projects are identified and which directories are used for dependencies and build artifacts:

Type Identifier(s) Directories
Node package.json node_modules
Cargo cargo.toml target
Mix mix.exs _build, deps
.NET Core .csproj bin, obj
Gradle build.gradle(.kts) build
Composer composer.json vendor
Misc. bin, build, dist bin, build, dist

polykill's People

Contributors

bdeering1 avatar homersimpsons avatar

Stargazers

Thomas Soteros avatar Raqueebuddin Aziz avatar NSR avatar Default Cube avatar Jacob Michels avatar Willi Kappler avatar  avatar OJ Kwon avatar Lars Willighagen avatar 邻二氮杂菲 avatar

Watchers

 avatar

Forkers

jacobmichels

polykill's Issues

great idea but...

This is a great idea but it's not really usable if you have a lot of folders. It scrolls over the top of my terminal and when you navigate with the up/down arrow you can't see what's going on. It would be great to put this in a fixed sized list based on the height of your terminal and then be able to scroll within that list.

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.