domain/architecture/system/deployment/nix_darwin/brew/effects.bend relies on unsafe/foreign
raw source on the hub · import 0x240dd78ab0879c4e226cf7dacf530ba1/domain/architecture/system/deployment/nix_darwin/brew/effects.bend as Effects
5 imports
import Base import ../../../effs/io.bend as X import ../../../plan/type.bend as P import ./type.bend as Br import ./ops.bend as BrO
Definitions
def declared_file source · line 10 · raw
String
def observed_file source · line 13 · raw
String
def bundle source · line 18 · raw
@args:List<&1, String> -> IO(Result<&1, &1, Pair(U32, String), Pair(U32, Pair(String, String))>)
brew bundle exits 1 when something is missing or would be removed, and says what: Base's Process.run keeps the output of a failing program.
def text_before source · line 22 · raw
@cs:List<&2, Char> -> @+pat:String -> String
---- installs: brew bundle check --verbose says "→ Formula x needs to be installed." per entry ----
def missing source · line 29 · raw
@ls:List<&2, String> -> List<&2, 0x240dd78ab0879c4e226cf7dacf530ba1/domain/architecture/system/plan/type.Step>
def some_or source · line 40 · raw
@+xs:List<&2, 0x240dd78ab0879c4e226cf7dacf530ba1/domain/architecture/system/plan/type.Step> -> @+f:String -> List<&2, 0x240dd78ab0879c4e226cf7dacf530ba1/domain/architecture/system/plan/type.Step>
def installs source · line 44 · raw
@r:Result<&1, &1, Pair(U32, String), Pair(U32, Pair(String, String))> -> @+f:String -> List<&2, 0x240dd78ab0879c4e226cf7dacf530ba1/domain/architecture/system/plan/type.Step>
def label_of source · line 52 · raw
@+heading:String -> String
---- removals: brew bundle cleanup lists them under "Would uninstall casks:", "Would untap:" and so on ----
def section source · line 57 · raw
@+l:String -> @+label:String -> String
The label of the section a line starts, the current one for an entry, or "" outside any section.
def removals source · line 63 · raw
@ls:List<&2, String> -> @+label:String -> List<&2, 0x240dd78ab0879c4e226cf7dacf530ba1/domain/architecture/system/plan/type.Step>
def removed source · line 75 · raw
@r:Result<&1, &1, Pair(U32, String), Pair(U32, Pair(String, String))> -> List<&2, 0x240dd78ab0879c4e226cf7dacf530ba1/domain/architecture/system/plan/type.Step>
def changes source · line 83 · raw
@brews:List<&2, 0x240dd78ab0879c4e226cf7dacf530ba1/domain/architecture/system/deployment/nix_darwin/brew/type.Brew> -> IO(List<&2, 0x240dd78ab0879c4e226cf7dacf530ba1/domain/architecture/system/plan/type.Step>)
What applying the declared entries would install and remove.
def observed source · line 91 · raw
IO(List<&2, 0x240dd78ab0879c4e226cf7dacf530ba1/domain/architecture/system/deployment/nix_darwin/brew/type.Brew>)
The Mac's Homebrew entries, as brew bundle dump writes them.