Comments (7)
Yep good call, thank you for the reminder @azzamsa
from kondo.
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.
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.
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.
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.
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.
@tbillington I think we need a new release that includes #66 :)
from kondo.
Related Issues (20)
- Fails to detect Python projects that don't have a `.py` file in their root HOT 2
- Does not delete all `__pycache__` directories HOT 2
- Overview for CLI version HOT 1
- Discovery Rework
- Does not recurse through directories with python scripts present HOT 3
- Os error NotFound when trying to ignore certain directories with `ls --ignore=...` HOT 4
- Make a new release HOT 6
- Could not compile kondo-ui HOT 1
- kondo doesn't build on FreeBSD HOT 1
- Add .angular folder HOT 1
- No icons in UI (actually, just one). Font needed? HOT 1
- Clean up more Python-related caches
- How to ignore some directory? HOT 14
- Support deleting the Zig cache HOT 1
- `--ignored-dirs` argument ignores the project itself HOT 3
- Support system level cleaning
- Support moving artifacts to system trash
- Issues deleting directories. Error: "Directory not empty" HOT 4
- 72 years ago HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kondo.