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

consider strict separation of code and data #2

Open
focusaurus opened this issue Oct 2, 2014 · 2 comments
Open

consider strict separation of code and data #2

focusaurus opened this issue Oct 2, 2014 · 2 comments

Comments

@focusaurus
Copy link

For my own brew stuff, I generate data files of my installed stuff via this shell function:

save_brew () {
    brew leaves > ~/projects/dotfiles/brew_leaves.txt
    brew cask list > ~/projects/dotfiles/brew_cask_list.txt
}

So I can just install stuff normally via brew and if I decide I want to keep it I can save_brew. I can install with:

brewify() {
  cat "${DOTFILES}/brew_leaves.txt" | xargs brew install
}

I think you'll find maintaining this easier if you move toward keeping code/logic separated from pure data of installed inventory.

Random side note that I like your notion of using golang for a new version of this.

@matthewmueller
Copy link
Owner

+1, I like that idea

@johntrandall
Copy link

+1

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

No branches or pull requests

3 participants