domain/architecture/system/deployment/nix_darwin/brew/ops.bend checks
raw source on the hub · import 0x3ffc69d4b5da64782dbe50fda425aa0c/domain/architecture/system/deployment/nix_darwin/brew/ops.bend as Ops
2 imports
import Base import ./type.bend as Br
Definitions
def quote_char source · line 7 · raw
@+c:Char -> @+x:Char -> String
---- string literals: Nix (mac.nix), Ruby (the Brewfile) and Bend (an imported settings file) ----
One character of a double-quoted literal: backslash, quote and the language's x (Nix's $, Ruby's #)
are escaped, and so is a newline.
def quote_chars source · line 11 · raw
@cs:List<&2, Char> -> @+x:Char -> String
def nix_esc source · line 19 · raw
@s:String -> String
A string's characters as a Nix string literal writes them, without the quotes.
def nix_str source · line 22 · raw
@s:String -> String
def ruby_str source · line 25 · raw
@s:String -> String
def bend_str source · line 28 · raw
@s:String -> String
def tap_nix source · line 33 · raw
@b:0x3ffc69d4b5da64782dbe50fda425aa0c/domain/architecture/system/deployment/nix_darwin/brew/type.Brew -> String
---- the Homebrew section of mac.nix: one list per kind; entries nix-darwin has no option for are raw Brewfile lines ----
def formula_nix source · line 40 · raw
@b:0x3ffc69d4b5da64782dbe50fda425aa0c/domain/architecture/system/deployment/nix_darwin/brew/type.Brew -> String
def cask_nix source · line 47 · raw
@b:0x3ffc69d4b5da64782dbe50fda425aa0c/domain/architecture/system/deployment/nix_darwin/brew/type.Brew -> String
def other_nix source · line 54 · raw
@b:0x3ffc69d4b5da64782dbe50fda425aa0c/domain/architecture/system/deployment/nix_darwin/brew/type.Brew -> String
def mas_name source · line 61 · raw
@b:0x3ffc69d4b5da64782dbe50fda425aa0c/domain/architecture/system/deployment/nix_darwin/brew/type.Brew -> List<&2, String>
def mas_names source · line 68 · raw
@xs:List<&2, 0x3ffc69d4b5da64782dbe50fda425aa0c/domain/architecture/system/deployment/nix_darwin/brew/type.Brew> -> List<&2, String>
def occurrences source · line 75 · raw
@xs:List<&2, String> -> @+x:String -> Nat
def mas_nix source · line 83 · raw
@b:0x3ffc69d4b5da64782dbe50fda425aa0c/domain/architecture/system/deployment/nix_darwin/brew/type.Brew -> @+names:List<&2, String> -> String
masApps is an attribute set: an app name the list repeats gets its id added.
def all_nix source · line 91 · raw
@xs:List<&2, 0x3ffc69d4b5da64782dbe50fda425aa0c/domain/architecture/system/deployment/nix_darwin/brew/type.Brew> -> @+part:Nat -> @+names:List<&2, String> -> String
Part 0 taps, 1 masApps, 2 brews, 3 casks, 4 extraConfig.
def nix_section source · line 101 · raw
@+xs:List<&2, 0x3ffc69d4b5da64782dbe50fda425aa0c/domain/architecture/system/deployment/nix_darwin/brew/type.Brew> -> String
def brewfile_line source · line 109 · raw
@b:0x3ffc69d4b5da64782dbe50fda425aa0c/domain/architecture/system/deployment/nix_darwin/brew/type.Brew -> String
---- the Brewfile, for brew bundle ----
def brewfile source · line 122 · raw
@xs:List<&2, 0x3ffc69d4b5da64782dbe50fda425aa0c/domain/architecture/system/deployment/nix_darwin/brew/type.Brew> -> String
def digits_of source · line 131 · raw
@cs:List<&2, Char> -> String
---- reading a Brewfile (as brew bundle dump writes it): a line's options after the name are dropped,
except a Mac App Store app's id ----
def mas_id source · line 139 · raw
@+l:String -> String
The digits after "id:", "" when there are none.
def entry_of source · line 142 · raw
@+kind:String -> @+name:String -> @+l:String -> List<&2, 0x3ffc69d4b5da64782dbe50fda425aa0c/domain/architecture/system/deployment/nix_darwin/brew/type.Brew>
def first_word source · line 149 · raw
@+l:String -> String
def quoted_name source · line 152 · raw
@+l:String -> String
def of_lines source · line 155 · raw
@ls:List<&2, String> -> List<&2, 0x3ffc69d4b5da64782dbe50fda425aa0c/domain/architecture/system/deployment/nix_darwin/brew/type.Brew>
def of_brewfile source · line 163 · raw
@text:String -> List<&2, 0x3ffc69d4b5da64782dbe50fda425aa0c/domain/architecture/system/deployment/nix_darwin/brew/type.Brew>
def bend_expr source · line 167 · raw
@b:0x3ffc69d4b5da64782dbe50fda425aa0c/domain/architecture/system/deployment/nix_darwin/brew/type.Brew -> String
---- Bend source for a list of entries (an imported settings file names the types Br) ----
def bend_exprs source · line 180 · raw
@xs:List<&2, 0x3ffc69d4b5da64782dbe50fda425aa0c/domain/architecture/system/deployment/nix_darwin/brew/type.Brew> -> List<&2, String>
def bend_list source · line 187 · raw
@xs:List<&2, 0x3ffc69d4b5da64782dbe50fda425aa0c/domain/architecture/system/deployment/nix_darwin/brew/type.Brew> -> String