Skip to content
This repository has been archived by the owner on Feb 18, 2025. It is now read-only.

Add CLI #32

Open
alexarchambault opened this issue Apr 15, 2020 · 4 comments · May be fixed by #39
Open

Add CLI #32

alexarchambault opened this issue Apr 15, 2020 · 4 comments · May be fixed by #39

Comments

@alexarchambault
Copy link
Contributor

I think it'd be nice / convenient if directories-jvm had a CLI, to print the directories of an app, from its name, on the current OS. It could be used like

$ directories coursier --cache-dir
/Users/alex/Library/Caches/Coursier
@alexarchambault
Copy link
Contributor Author

@soc If you're ok with the idea, I can give it a try if you'd like.

@soc
Copy link
Collaborator

soc commented Apr 15, 2020

@alexarchambault Could we do this as a separate module?

Such that people who only need the library can use it without dragging in CLI/parsing code?
(Maybe named directories-jvm-cli or something?)

@alexarchambault
Copy link
Contributor Author

Could we do this as a separate module?

Yes, that's what I was thinking about.

I'm thinking about maybe using picocli to parse arguments, or parsing them manually if picocli ends up not doing the job.

@MatejKafka
Copy link

MatejKafka commented Sep 10, 2024

Wouldn't it make more sense to implement the CLI on top of directories-rs? Java has severe startup overhead and a large runtime compared to Rust.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants