brew reinstall --interactive#6997
Conversation
|
@Homebrew/maintainers would any of you use this? |
|
As a workaround, I’ve always used the following kludge: and I’d be more than delighted to have this feature. |
|
I don't care specifically about interactive but I'm very much in favor of |
|
Yes, I think that |
|
When I bump formula and it fails locally, for debug purposes I use similar to @claui approach. |
|
It would also be useful to have |
|
I don't think it's worth making the interface identical because not all options make sense for |
MikeMcQuaid
left a comment
There was a problem hiding this comment.
Thanks for the PR! You will also need to brew man and commit the changes.
There was a problem hiding this comment.
| reinstall_formula(f) do |fi| | |
| reinstall_formula(f, interactive: args.interactive?) |
There was a problem hiding this comment.
Nice suggestion!
I wasn't sure what to do here — deep inside reinstall_formula uses ARGV.interactive? so perhaps just adding the flag to the listed flags in cmd/reinstall is enough, and remove the yield? I notice reinstall_formula is only otherwise used in cmd/upgrade which also does not list --interactive.
There was a problem hiding this comment.
Yeah, just listing the switch in the switches is enough to make it work. I'll back out the rest.
There was a problem hiding this comment.
| yield fi if block_given? |
There was a problem hiding this comment.
| fi.interactive = args.interactive? |
I think |
More often than I realised, I want to `brew reinstall --build-from-source --interactive $FORMULA` to add some custom configuration. It seems like a useful addition?
b998e8f to
8cd0177
Compare
Does Edit: Oh, no, I see — upgrading from non-HEAD to HEAD. |
|
Thanks so much for your contribution! Without people like you submitting PRs we couldn't run this project. You rock, @sj26! |
More often than I realised, I want to
brew reinstall --build-from-source --interactive $FORMULAto add some custom configuration. It seems like a useful addition?