def tools.put

ezx@1.11.0.0 · src/ledger/manifest.bend:192

import ezx@1.11.0.0/src/ledger/manifest.bend as Manifest
import Base
import ezx@1.11.0.0/src/toml/toml.bend as T

192# a section joins the tools only when it is a `[tools.<name>]`
193def tools.put(is_tool: Bool, sect: T.Sect, rest: List<&2, Tool>) -> List<&2, Tool>:
194  match is_tool:
195    case True{}:
196      T.Sect{n, ps} = sect
197      tool_of(n, ps) <> rest
198    case False{}:
199      rest

Uses (5)

Used by (1)