Giter VIP home page Giter VIP logo

Comments (7)

tbillington avatar tbillington commented on May 29, 2024 2

Yep good call, thank you for the reminder @azzamsa

from kondo.

tbillington avatar tbillington commented on May 29, 2024

When I use kondo in my directory project, it deletes all the build artifacts in all directories. Including the active one.

Hey @azzamsa , just to be sure, kondo should only delete from projects that you choose to "clean", if it's deleting from projects without your express consent please file an issue for that!

In regards to "active" projects, it's hard to say what is active, that will depend on the user. I was actually working on a way to surface the projects last modified date yesterday. It's my hope that will provide the user enough information to base their decision.

As for automatically cleaning projects older than a certain date, I honestly hadn't thought of that, but it's something I may consider adding. Thank you for letting me know about that!

from kondo.

azzamsa avatar azzamsa commented on May 29, 2024

As for automatically cleaning projects older than a certain date, I honestly hadn't thought of that, but it's something I may consider adding. Thank you for letting me know about that!

Yes, I think it doesn't need to be configurable as args. last modified file > one month is enough to say the project is inactive.
Or we could create a poll in discussion what will be the default (hardcoded): one month or one week.

from kondo.

tbillington avatar tbillington commented on May 29, 2024

I've added a printout of the last date a file in the project was modified, which was the first step towards something like this

/Users/choc/code/sp-liveview Cargo project (2 days ago)
  └─ target (615.6MiB)
  delete above artifact directories? ([y]es, [n]o, [a]ll, [q]uit): n

/Users/choc/code/rust-au Cargo project (3 months ago)
  └─ target (2.2GiB)
  delete above artifact directories? ([y]es, [n]o, [a]ll, [q]uit): n

/Users/choc/code/rust-prod-api Cargo project (2 months ago)
  └─ target (1.7GiB)
  delete above artifact directories? ([y]es, [n]o, [a]ll, [q]uit): q

from kondo.

tbillington avatar tbillington commented on May 29, 2024

What about some kind of minimal filter syntax for passing to kondo.

For example kondo projects-dir -f 1m which would only show projects modified more than 1 month ago. Then you could do things like kondo -f 2d or kondo -f 1y etc.

You could combine that with the --all or -a flag to automatically clean the matching projects.

from kondo.

azzamsa avatar azzamsa commented on May 29, 2024

You could combine that with the --all or -a flag to automatically clean the matching projects.

I think it should be the default, to avoid breaking current workflow.

from kondo.

azzamsa avatar azzamsa commented on May 29, 2024

@tbillington I think we need a new release that includes #66 :)

from kondo.

Related Issues (20)

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.