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

`rebar3 path' provider #761

Merged
merged 3 commits into from
Sep 7, 2015
Merged

Conversation

talentdeficit
Copy link
Contributor

prints requested paths to stdout based on current profile

usage:

$ echo `rebar3 path`
/Users/talentdeficit/dev/erlang/rebar/_build/default/lib/ssl_verify_hostname/ebin /Users/talentdeficit/dev/erlang/rebar/_build/default/lib/relx/ebin /Users/talentdeficit/dev/erlang/rebar/_build/default/lib/providers/ebin /Users/talentdeficit/dev/erlang/rebar/_build/default/lib/getopt/ebin /Users/talentdeficit/dev/erlang/rebar/_build/default/lib/erlware_commons/ebin /Users/talentdeficit/dev/erlang/rebar/_build/default/lib/bbmustache/ebin /Users/talentdeficit/dev/erlang/rebar/_build/default/lib/rebar/ebin
$ echo `rebar3 path --base`
/Users/talentdeficit/dev/erlang/rebar3/_build/default
$ echo `rebar3 path --app=rebar,providers --ebin --seperator=","`
/Users/talentdeficit/dev/erlang/rebar3/_build/default/lib/rebar/ebin,/Users/talentdeficit/dev/erlang/rebar3/_build/default/lib/providers/ebin

alisdair sullivan added 2 commits August 29, 2015 17:52
prints requested paths to stdout based on current profile
@tsloughter
Copy link
Collaborator

@ferd any thoughts on this?

@talentdeficit you'll need to add path to the README and shell completions.

@ferd
Copy link
Collaborator

ferd commented Sep 2, 2015

I'm wondering what's the intended use case for this? I'm fine adding it in depending on the rationale and the low chance of breakage, but I just need to understand what this is needed for?

@talentdeficit
Copy link
Contributor Author

mostly so you can do:

erl -pa `rebar3 path`

tsloughter added a commit that referenced this pull request Sep 7, 2015
@tsloughter tsloughter merged commit d7f2226 into erlang:master Sep 7, 2015
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.

3 participants