Closed leoj3n closed 10 years ago
Yeah, that seems really cool. And looks like its integrating directly into homebrew. I could broaden the scope of this project to check for existing brew packages as well. And generate a .brew instead of a .cask. Is that what you're thinking would be best? I haven't used brew bundle
yet. So not sure if that already covers this.
Well since your program already assumes homebrew is installed, all it needs to do is "reverse bundle".
Essentially that means spitting out a Brewfile
and a Caskfile
. That'd make the most sense, I think.
Then users can use the brew bundle
command on those files, respectively.
You might rename the repo to "brew-reverse-bundle" or something like that.
Yeah, I like that...
Ideally it should scan your installed brew files to give you a full list for both brew and cask. For cask, I parse the github repo for casks. Let me see how I can get a list of just brews. I'll update in a bit.
Okay, I'm really close. Will push something new tomorrow.
Okay, did a full rewrite to include Brewfile
and Caskfiles
. It also generates a .brew
file. If you get a chance to try it, I'd love some feedback on it.
Hey @leoj3n, the app is ready for some testing, if you feel like it does the trick, I'll go ahead and close this issue. Let me know. Thanks.
I wouldn't add the dot in front of Brewfile or Caskfile, f.ex: https://coderwall.com/p/afmnbq
Anyways, it works wonders! This is extremely useful. I'd actually like to see this in homebrew and brew-cask as core functions but the devil's in the details so for now this is perfect!
I'd remove the dot in front of Brewfile
and Caskfile
as well.
A couple of remarks:
:+1:
Thanks @leoj3n and @pstadler for taking a closer look...
I removed the dot before the Brewfile
and Caskfile
.
node_modules
folder.Thanks again. And let me know any time if you guys see something that needs improvement.
Have you considered generating a Brewfile instead of
.cask
?See: :beer: https://github.com/Homebrew/homebrew/pull/24107
Example: https://github.com/pstadler/dotfiles/blob/master/Caskfile