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

Allow supplying custom profiles #16

Open
MIJOTHY opened this issue Feb 19, 2021 · 0 comments
Open

Allow supplying custom profiles #16

MIJOTHY opened this issue Feb 19, 2021 · 0 comments

Comments

@MIJOTHY
Copy link

MIJOTHY commented Feb 19, 2021

It looks like the set of profiles used in dependency calculation hard-codes the profile being used:

(let [profiles (if-not (:dev options)
[:user]
[:user :dev])

It would be useful if consumers could supply profiles, either via the usual lein with-profiles foo <command> syntax or through a command line argument.

Happy to submit a PR.

MIJOTHY added a commit to MIJOTHY/vizdeps that referenced this issue Feb 19, 2021
Currently the only supported profiles in the `vizdeps` command are
`:user` and `:dev`. `leiningen` allows arbitrary profiles to be created
and to have custom dependencies (and other fields) defined for those
profiles.

This commit
-----------
Adds a `-P | --profiles` parameter, expecting a comma-delimited string
of profile names. These profiles will then be used in dependency
calculation.

Relates to
----------
walmartlabs/issues/16
MIJOTHY added a commit to MIJOTHY/vizdeps that referenced this issue Feb 19, 2021
Currently the only supported profiles in the `vizdeps` command are
`:user` and `:dev`. `leiningen` allows arbitrary profiles to be created
and to have custom dependencies (and other fields) defined for those
profiles.

This commit
-----------
Adds a `-P | --profiles` parameter, expecting a comma-delimited string
of profile names. These profiles will then be used in dependency
calculation. The `-d | --dev` flag is removed as its functionality is
superseded by `-P | --profiles`.

Note that this is a _BREAKING_ change, due to the removal of the `-d`
flag.

Relates to
----------
walmartlabs/issues/16
MIJOTHY added a commit to MIJOTHY/vizdeps that referenced this issue Feb 19, 2021
Currently the only supported profiles in the `vizdeps` command are
`:user` and `:dev`. `leiningen` allows arbitrary profiles to be created
and to have custom dependencies (and other fields) defined for those
profiles.

This commit
-----------
Adds a `-P | --profiles` parameter, expecting a comma-delimited string
of profile names. These profiles will then be used in dependency
calculation. The `-d | --dev` flag is removed as its functionality is
superseded by `-P | --profiles`.

Note that this is a _BREAKING_ change, due to the removal of the `-d`
flag.

Relates to
----------
walmartlabs#16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant