def changes

near-v-framework@0.4.0.0 · domain/architecture/system/deployment/nix_darwin/brew/effects.bend:82

import near-v-framework@0.4.0.0/domain/architecture/system/deployment/nix_darwin/brew/effects.bend as Effects
import Base
import near-v-framework@0.4.0.0/domain/architecture/system/effs/io.bend as X
import near-v-framework@0.4.0.0/domain/architecture/system/plan/type.bend as P
import near-v-framework@0.4.0.0/domain/architecture/system/deployment/nix_darwin/brew/type.bend as Br
import near-v-framework@0.4.0.0/domain/architecture/system/deployment/nix_darwin/brew/ops.bend as BrO

82# What applying the declared entries would install and remove.
83def changes(brews: List<&2, Br.Brew>) -> IO(List<&2, P.Step>):
84  do IO<List<&2, P.Step>>:
85    X.write(declared_file(), BrO.brewfile(brews))
86    c : Result<&1, &1, U32 & String, U32 & (String & String)> <- bundle(["check", "--no-upgrade", "--verbose", "--file", declared_file()])
87    r : Result<&1, &1, U32 & String, U32 & (String & String)> <- bundle(["cleanup", "--file", declared_file()])
88    return List.append(&2, P.Step, installs(c, declared_file()), removed(r))

Uses (18)

Used by (1)