Skip to content

consider strict separation of code and data #2

@focusaurus

Description

@focusaurus

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions