-
-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI option to print artifact dirs in plaintext #9
Comments
implemented with |
Hi @tbillington 👋 Thanks for this awesome tool :-) Can we reopen this? I think the
True, it does output the directory path, but only in combination with the type, and with actually removing the data. It seems more like a However, for "pass[ing to] other programs" something more like a |
It got removed in 7e76b65, so the -a referenced in this issue is a different flag to the one that currently exists. I do think it's something that should exist though, I'll look at adding it back in. Kondo also used to support an "exec" where you could get kondo to spawn commands/processes for each project/artifact dir but it is harder to support properly than one might imagine so I removed it. There is a question around the output. Do you only list artifact directories, do you also list the project folder, do you list the project type somewhere? With a JSON output all of that would be probably fine, but if it's just outputting plain text stream it might need to be restricted to just newline separated artifact dirs of all projects found. Did you have any example use cases in mind to help guide an implementation? Thanks for bringing this up btw 😃 |
The former would be more useful, IMHO, because the artifact directory is the one that is emptied. If a project folder has multiple, they can always be grouped to highlight that fact.
Why not, as long as a separator that wouldn't be a valid symbol in a path is used. Any kind of A usecase would be to build a list of |
Looking forward to adding |
@hustcer kondo is recursive by default. But yes dry run would be helpful. It's not 100% necessary because it won't do anything until you tell it what to do, so dry run is a little less necessary. The alternate I had in mind was more of a "discovery" command that would list all the projects, types, and sizes without taking any action. What would you use dry run for ? |
I should have been more specific, kondo is fully recursive by default (uses walkdir under the hood), however it doesn't recurse inside a found project #29 #55 #117 . I am loosely working on a rework in the background to address it, perhaps see if the description here addresses your use case.
To make sure I understand fully, instead of wanting to make a choice at each project, you want to do a dry run that lists everything, then (if you're okay with the output) run Aside: there is the |
Yes, exactly
I have read #111 carefully, I think this feature fulfills my needs, I have just subscribed that issue. Thanks for the detailed response 👍 |
Reddit user bcgroom mentioned a flag to output just a plain text line separated list of artifact directories. That way it could be passed/manipulated by other programs.
The text was updated successfully, but these errors were encountered: