Skip to content
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

Add CLI #39

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add CLI #39

wants to merge 2 commits into from

Conversation

alexarchambault
Copy link
Contributor

Fixes #32.

Use like

$ directories Foo
cache:      /Users/alexandre/Library/Caches/Foo
config:     /Users/alexandre/Library/Application Support/Foo
data:       /Users/alexandre/Library/Application Support/Foo
local data: /Users/alexandre/Library/Application Support/Foo
preference: /Users/alexandre/Library/Preferences/Foo
runtime:    null
$ directories Foo --cache
/Users/alexandre/Library/Caches/Foo

Copy link
Collaborator

@soc soc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @alexarchambault!

I added some comments.

cli/src/main/java/dev/dirs/Directories.java Outdated Show resolved Hide resolved
cli/src/main/java/dev/dirs/Directories.java Outdated Show resolved Hide resolved
sharedSettings,
name := "directories-cli",
libraryDependencies += "info.picocli" % "picocli" % "4.4.0",
automaticModuleName("dev.dirs.cli")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

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

Successfully merging this pull request may close these issues.

Add CLI
2 participants