-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Add subcommands to config
#4600
Comments
@indirect may I give this one a shot? |
yes, definitely! sounds awesome :) |
Is it necessary to have an RFC for this first or can I just start working based on the example you've given? |
I think starting an implementation is a good way to figure out if there are issues that we need to discuss. :) |
@indirect I am using existing Specifically, shouldn't the line:
be
Since the previous command is calling |
@denniss yup, that looks like a mistake. No idea how it's passing. 😮 |
I think that actually might be the expected behavior. Although, I find it kind of confusing. From
I'd like to propose a couple change to the behavior of the config command.
E.g. May be @segiddins can chime in on this? |
Those are both breaking changes, which we wouldn't be able to ship in Bundler 1.x |
@segiddins yes, this entire PR is already in 2.0 territory. But I'm comfortable with starting work on that now, I think. |
@denniss I like both of those changes, I think 👍 |
In that case, I love the idea :) |
[2.0] Implement config subcommands ### What was the end-user problem that led to this PR? The problem was the current `bundle config` mega-command is hacky and confusing. ### What was your diagnosis of the problem? My diagnosis was we should add subcommands for `list`, `get`, `set`, and `unset` to make the CLI clearer. Closes #4600. ### What is your fix for the problem, implemented in this PR? My fix implements those subcommands while preserving the current bare `bundle config` command. ### Why did you choose this fix out of the possible options? I chose this fix because, as opposed to #5507, we can keep the existing command in for a little while to help ease the transition. @denniss how do you feel about this compared to your PR?
Today, it's confusing that
config
lets you pass the flagslocal
,global
, anddelete
in any combination.It would be an improvement to the interface of
config
if Bundler 2 supported a slightly different set of commands, e.g.:The text was updated successfully, but these errors were encountered: