src/tool/plan.bend checks
raw source on the hub · import ezx@1.18.0.0/src/tool/plan.bend as Plan
tool/plan: ez tool run, install and upgrade as a pure planner, and
ez tool sync as the list of installs it runs. The planner reads a World
(tool/world.bend) and returns either the questions it still needs answered
(step) or a Plan. The interpreter (tool/run.bend) loops on step,
answering each question by IO, then executes the plan.
Before it asks anything the planner refuses what needs no answer: an
install or upgrade with nowhere to link (laws/ToolBinDirChosen.bend), no
cache root, a project ledger that does not parse, a target that names
nothing or a cache slug that could leave the cache
(laws/ToolRefusesBadSlug.bend), a name the ledger pins that the lock does
not, or pins at no commit. Then it resolves the commit
(laws/ToolTargetBuildsPin.bend): a [tools.*] pin is the lock's rev, url,
entry and bin; a remote is what its HEAD names; a path is its clean HEAD,
and a path with uncommitted or untracked changes, or one that is not the
top of a checkout, is no commit (laws/DirtyTargetRebuilt.bend). Then the
checkout: a remote's is cached per commit and read from there when its
record says it finished, otherwise asked of git with every file's text; a
path is read where it is. Then its ledger, which names the file built
(laws/ToolBuiltFileChosen.bend) and the link, and a name that is not a
TOML bare key is refused. A checkout with no ez.toml is a plain Bend
repository: it builds main.bend, or the file --entry names, needs no
lock, and is linked under that file's stem, or under the repository's name
when the stem is main. A file to build that is not in the checkout is
refused. Then the binary's record: the binary is reused only when it is
there and its record is this commit, this file and this bend
(laws/ToolCacheReused.bend). Every binary lives in a directory named by
its record, so no two records share one, and a link made by an install is
never rebuilt under it by a run of another commit or file.
The plan of a command that goes on, in order: the checkout laid under the
cache when it was cloned, with its record written last; the lock fetched,
for an ez project, and the binary built with its record, unless it is
reused; then the program started, for run, or the link written, for
install and upgrade. A refusal has no effect at all. The program is
started only as the last thing, so its status is the command's
(laws/ToolRunExitsWithProgram.bend), and install and upgrade never
start it (laws/ToolLinkNeverRuns.bend).
14 imports
import Base import ./world.bend as TW import ../lock/plan.bend as P import ../lock/up.bend as Up import ../ledger/manifest.bend as M import ../toml/toml.bend as T import ../pkg/pkg.bend as K import ../pkg/path.bend as Path import ../git/git.bend as Git import ../ez/target.bend as Tgt import ../ez/named.bend as Named import ../ez/key.bend as Key import ../share/say.bend as Say import ../share/sha.bend as Sha
Types
type Src source · line 90 · raw
Data
a target resolved as far as the project can say: a [tools.*] pin, with
the lock's url and rev and the file its bin or entry names; a free
target, with the place its word names; or why there is none
Pin@name:String -> @url:String -> @rev:String -> @over:String -> Src
Free@place:0x2414c9622cab2353684d02a392804eb1/src/ez/target.Place -> Src
NoSrc@why:String -> Src
type Loc source · line 191 · raw
Data
what git said of a local path, still to ask, or why there is nothing
Loc@abs:String -> @top:String -> @head:String -> @ok:Bool -> @status:String -> Loc
LocWait@ask:0x2414c9622cab2353684d02a392804eb1/src/tool/world.Ask -> Loc
LocNo@why:String -> Loc
type Co source · line 423 · raw
Data
the checkout's ledger and lock, read where it is; the files of one cloned now; the questions still open; or why there is none
Kept@toml:Maybe<&2, String> -> @lock:Maybe<&2, String> -> Co
Laid@files:List<&2, 0x2414c9622cab2353684d02a392804eb1/src/pkg/pkg.Source> -> Co
CoWait@asks:List<&2, 0x2414c9622cab2353684d02a392804eb1/src/tool/world.Ask> -> @ups:List<&2, 0x2414c9622cab2353684d02a392804eb1/src/lock/up.Ask> -> Co
CoNo@why:String -> Co
type Lay source · line 745 · raw
Data
the checkout laid under the cache, its record last, or nothing laid
Lay@dir:String -> @writes:List<&2, 0x2414c9622cab2353684d02a392804eb1/src/lock/plan.Effect> -> Lay
StillLay
type Make source · line 753 · raw
Data
the binary: the lock of the checkout at top fetched into the library
when fetch says it has one, the file built into out with that library
as BEND_LIB, and the record written at at; or the one there reused; or
nothing, for a command that refuses
Make@top:String -> @lib:String -> @fetch:Bool -> @file:String -> @out:String -> @at:String -> @key:String -> @name:String -> Make
Reuse@name:String -> Make
SkipMake
type Finish source · line 761 · raw
Data
what is done with the binary: started with these words, as the last thing;
linked into dir under name, with the lines a person is told; or nothing
Launch@bin:String -> @args:List<&2, String> -> Finish
Link@bin:String -> @dir:String -> @name:String -> @says:List<&2, String> -> Finish
IdleFinish
type Plan source · line 767 · raw
Data
everything a tool command does, in order, and how it ends
Plan@lay:Lay -> @make:Make -> @finish:Finish -> @outcome:0x2414c9622cab2353684d02a392804eb1/src/lock/plan.Outcome -> Plan
type Verdict source · line 868 · raw
Data
every answer is in, a question is still open, or the command refuses
GoVerdict
Pending@asks:List<&2, 0x2414c9622cab2353684d02a392804eb1/src/tool/world.Ask> -> @ups:List<&2, 0x2414c9622cab2353684d02a392804eb1/src/lock/up.Ask> -> Verdict
Stop@why:String -> Verdict
type Step source · line 1080 · raw
Data
the questions still open, or the plan once there are none
Asking@asks:List<&2, 0x2414c9622cab2353684d02a392804eb1/src/tool/world.Ask> -> @ups:List<&2, 0x2414c9622cab2353684d02a392804eb1/src/lock/up.Ask> -> Step
Run@plan:Plan -> Step
type Sync source · line 1103 · raw
Data
the pins a sync installs, in the order the ledger names them, or why it installs none
Sync@names:List<&2, String> -> Sync
SyncNo@why:String -> Sync
type Exit source · line 1300 · raw
Data
how a command ends: exit 1, having started nothing; exit 0; or with the status of this program, started with these words as the last thing
RefusalExit
FinishedExit
Exits@bin:String -> @args:List<&2, String> -> Exit
Definitions
def none source · line 58 · raw
@got:Maybe<&2, String> -> Bool
whether a Maybe holds nothing
def links.act source · line 66 · raw
@act:0x2414c9622cab2353684d02a392804eb1/src/tool/world.Act -> Bool
whether an act links the binary: install and upgrade do, run does not
def tools.of source · line 76 · raw
@manifest:0x2414c9622cab2353684d02a392804eb1/src/ledger/manifest.Manifest -> List<&2, 0x2414c9622cab2353684d02a392804eb1/src/ledger/manifest.Cli>
the tools of a ledger that was read
def locked source · line 81 · raw
@+body:String -> List<&2, 0x2414c9622cab2353684d02a392804eb1/src/ledger/manifest.Cli>
the pins a lock's text records
def over.of source · line 97 · raw
@+binary:String -> @+entry:String -> String
the file a pin names: its bin, else its entry, else "" so the
checkout's own ledger chooses
def pin.go source · line 101 · raw
@empty:Bool -> @+tool:0x2414c9622cab2353684d02a392804eb1/src/ledger/manifest.Cli -> @+name:String -> Src
a pin the lock has, or a refusal when it has none by that name
def pin.of source · line 110 · raw
@+tool:0x2414c9622cab2353684d02a392804eb1/src/ledger/manifest.Cli -> @+name:String -> Src
the pin the lock has for a name, or a refusal
def pin.in source · line 114 · raw
@+body:String -> @+name:String -> 0x2414c9622cab2353684d02a392804eb1/src/ledger/manifest.Cli
the pin the lock records under a name, one with empty fields for none
def pinned source · line 118 · raw
@got:Maybe<&2, String> -> @+name:String -> Src
a name the ledger pins is built as the lock pins it
def src.pick source · line 126 · raw
@free:Bool -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Src
a name the ledger pins, or a free target
def unpinned source · line 134 · raw
@+manifest:0x2414c9622cab2353684d02a392804eb1/src/ledger/manifest.Manifest -> @+name:String -> Bool
whether a ledger pins nothing under this name
def src.read source · line 138 · raw
@led:0x2414c9622cab2353684d02a392804eb1/src/ledger/manifest.Read -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Src
a project ledger that does not parse is refused
def src source · line 146 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Src
what the target names (laws/ToolTargetBuildsPin.bend)
def place.pin source · line 150 · raw
@pl:0x2414c9622cab2353684d02a392804eb1/src/ez/target.Place -> 0x2414c9622cab2353684d02a392804eb1/src/ez/target.Place
a pin names a git repository; a path is no pin
def place.of source · line 160 · raw
@found:Src -> 0x2414c9622cab2353684d02a392804eb1/src/ez/target.Place
where a resolved target is
def place source · line 170 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> 0x2414c9622cab2353684d02a392804eb1/src/ez/target.Place
where the target is: a remote with its cache slug, a path, or nowhere
def over.src source · line 174 · raw
@found:Src -> String
the file a pin names, "" for a free target
def over source · line 184 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
the file the target names for itself, "" when the checkout chooses
def loc.of source · line 197 · raw
@got:0x2414c9622cab2353684d02a392804eb1/src/tool/world.Heard -> @ask:0x2414c9622cab2353684d02a392804eb1/src/tool/world.Ask -> Loc
what git said of a path, looked up
def locate source · line 211 · raw
@+path:String -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> 0x2414c9622cab2353684d02a392804eb1/src/tool/world.Ask
the question about a local path, ~ expanded
def loc source · line 215 · raw
@+path:String -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Loc
what git said of a local path
def loc.abs source · line 219 · raw
@spot:Loc -> String
the real path of a local target, "" while it is not known
def local.same source · line 232 · raw
@same:Bool -> @+head:String -> String
the commit a local path builds: HEAD, when git status answered and named
nothing, and the path is the top of its checkout. A path in a checkout
whose top is elsewhere may be ignored there, or hold files the commit does
not; either way it is no commit (laws/DirtyTargetRebuilt.bend).
def local.clean source · line 239 · raw
@clean:Bool -> @same:Bool -> @+head:String -> String
def local.go source · line 246 · raw
@ok:Bool -> @clean:Bool -> @same:Bool -> @+head:String -> String
def local.rev source · line 253 · raw
@+abs:String -> @+top:String -> @+head:String -> @ok:Bool -> @+status:String -> String
def loc.rev source · line 257 · raw
@spot:Loc -> String
the commit of a local target, "" while it is not known
def head.said source · line 267 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> @+url:String -> 0x2414c9622cab2353684d02a392804eb1/src/lock/up.Said
what a remote's HEAD printed
def head.rev source · line 271 · raw
@said:0x2414c9622cab2353684d02a392804eb1/src/lock/up.Said -> String
the commit HEAD names, "" while it is not known
def rev.free source · line 281 · raw
@pl:0x2414c9622cab2353684d02a392804eb1/src/ez/target.Place -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
the commit of a free target
def rev.of source · line 291 · raw
@found:Src -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
the commit of a resolved target
def rev source · line 301 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
the commit built, "" for none (laws/ToolTargetBuildsPin.bend)
def root source · line 308 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
the cache root, "" for none
def dir.of source · line 313 · raw
@pl:0x2414c9622cab2353684d02a392804eb1/src/ez/target.Place -> @+root:String -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
the cache directory of a target: <root>/<slug> for a remote, and
<root>/local<abs> for a path
def dir source · line 323 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
the target's cache directory
def revdir source · line 328 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
a remote's checkout of a commit lives in its own directory, so a pin and a free run at other commits never clone over each other
def stamp.at source · line 332 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
the checkout's record, written once every file of it is laid
def top.of source · line 336 · raw
@pl:0x2414c9622cab2353684d02a392804eb1/src/ez/target.Place -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
the checkout: under the cache for a remote, the path itself for a path
def top source · line 346 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
where the checkout is
def lib.of source · line 351 · raw
@pl:0x2414c9622cab2353684d02a392804eb1/src/ez/target.Place -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
the library the checkout's lock is fetched into: the checkout's own for a remote, and one under the cache for a path, which is never written into
def text.of source · line 364 · raw
@got:0x2414c9622cab2353684d02a392804eb1/src/tool/world.Heard -> Maybe<&2, String>
a file's text as it was answered, None when it is missing or not answered
def read.got source · line 375 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> @+path:String -> Maybe<&2, String>
def open.of source · line 379 · raw
@got:0x2414c9622cab2353684d02a392804eb1/src/tool/world.Heard -> Bool
whether a question is still open
def open source · line 387 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> @+ask:0x2414c9622cab2353684d02a392804eb1/src/tool/world.Ask -> Bool
whether a question of ours is still open
def opens.step source · line 391 · raw
@open:Bool -> @ask:0x2414c9622cab2353684d02a392804eb1/src/tool/world.Ask -> @rest:List<&2, 0x2414c9622cab2353684d02a392804eb1/src/tool/world.Ask> -> List<&2, 0x2414c9622cab2353684d02a392804eb1/src/tool/world.Ask>
a question kept when it is still open
def opens source · line 399 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> @asks:List<&2, 0x2414c9622cab2353684d02a392804eb1/src/tool/world.Ask> -> List<&2, 0x2414c9622cab2353684d02a392804eb1/src/tool/world.Ask>
the questions of these still open
def yes.of source · line 407 · raw
@got:0x2414c9622cab2353684d02a392804eb1/src/tool/world.Heard -> Bool
whether an answer said yes
def clone.ask source · line 430 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> @+url:String -> 0x2414c9622cab2353684d02a392804eb1/src/lock/up.Ask
the files a checkout at a rev is made of, asked of git
def co.clone source · line 434 · raw
@got:0x2414c9622cab2353684d02a392804eb1/src/lock/up.Heard -> @ask:0x2414c9622cab2353684d02a392804eb1/src/lock/up.Ask -> Co
the checkout git gave, still to ask, or why there is none
def reads source · line 448 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> List<&2, 0x2414c9622cab2353684d02a392804eb1/src/tool/world.Ask>
the three files of a cached checkout
def co.fresh source · line 453 · raw
@fresh:Bool -> @+url:String -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Co
the cached checkout is this commit and finished, or it is cloned again
def fresh source · line 463 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Bool
whether the cached checkout's record names this commit. The record is written after every file, so a checkout it names is whole, with or without a ledger.
def co.remote source · line 467 · raw
@open:List<&2, 0x2414c9622cab2353684d02a392804eb1/src/tool/world.Ask> -> @+url:String -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Co
a remote's cached checkout, once its three files are read
def co.local source · line 475 · raw
@open:List<&2, 0x2414c9622cab2353684d02a392804eb1/src/tool/world.Ask> -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Co
a path's ledger and lock, once they are read
def co.of source · line 483 · raw
@pl:0x2414c9622cab2353684d02a392804eb1/src/ez/target.Place -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Co
the checkout of a place
def co source · line 494 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Co
the checkout of the target
def co.toml source · line 498 · raw
@checkout:Co -> Maybe<&2, String>
the checkout's ez.toml
def co.lock source · line 510 · raw
@checkout:Co -> Maybe<&2, String>
the checkout's ez.lock.toml
def label.of source · line 525 · raw
@pl:0x2414c9622cab2353684d02a392804eb1/src/ez/target.Place -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
the checkout, as a person knows it: a remote at its commit, or a path
def label source · line 535 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
the checkout, as a person knows it
def led.of source · line 540 · raw
@got:Maybe<&2, String> -> 0x2414c9622cab2353684d02a392804eb1/src/ledger/manifest.Read
the checkout's ledger as read. A checkout with no ez.toml is a plain Bend repository, whose ledger names nothing: no package, no entry, no deps.
def led source · line 548 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> 0x2414c9622cab2353684d02a392804eb1/src/ledger/manifest.Read
the checkout's ledger, read
def plain source · line 554 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Bool
whether the checkout is a plain Bend repository: it has no ez.toml, so no git dependencies and no lock. Its program's hub imports are bend's to fetch, into a library of its own under the cache.
def lib source · line 560 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
where the checkout's lock is fetched, or, for a plain repository, where bend fetches its hub imports: a library of the target's own under the cache, beside its binaries
def man.of source · line 564 · raw
@parsed:0x2414c9622cab2353684d02a392804eb1/src/ledger/manifest.Read -> 0x2414c9622cab2353684d02a392804eb1/src/ledger/manifest.Manifest
the model of a ledger that read, an empty one otherwise
def man source · line 572 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> 0x2414c9622cab2353684d02a392804eb1/src/ledger/manifest.Manifest
the checkout's ledger, empty when it did not read
def man.name source · line 576 · raw
@manifest:0x2414c9622cab2353684d02a392804eb1/src/ledger/manifest.Manifest -> String
the checkout's [package] name, bin and entry
def man.bin source · line 581 · raw
@manifest:0x2414c9622cab2353684d02a392804eb1/src/ledger/manifest.Manifest -> String
a ledger's bin
def man.entry source · line 586 · raw
@manifest:0x2414c9622cab2353684d02a392804eb1/src/ledger/manifest.Manifest -> String
a ledger's entry
def stem source · line 591 · raw
@+file:String -> String
a file's last component without its .bend: src/cli.bend is cli
def repo.name source · line 596 · raw
@+url:String -> String
a repository's name: the last component of its URL or path, a trailing
slash and .git taken off, so https://github.com/o/bolt.git is bolt
def plain.name source · line 601 · raw
@+file:String -> @+url:String -> String
the link's name for a plain repository: the stem of the file built, or the
repository's name when that is main, since every plain repository has one
def origin.of source · line 606 · raw
@pl:0x2414c9622cab2353684d02a392804eb1/src/ez/target.Place -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
where the checkout came from, as a person named it: a remote's URL, or a path's real path
def origin source · line 616 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
where the checkout came from
def bin source · line 620 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
the checkout's bin
def entry source · line 624 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
the checkout's entry
def name.ok source · line 629 · raw
@+name:String -> Bool
whether a package name can name the link and the binary: none at all, or a
TOML bare key, so it holds no / and cannot be ..
def chosen source · line 634 · raw
@+over:String -> @+binary:String -> @+entry:String -> String
the file built: the pin's bin, then its entry, then the checkout's
bin, then its entry, then main.bend (laws/ToolBuiltFileChosen.bend)
def wish source · line 641 · raw
@+over:String -> @+want:String -> String
the file asked for ahead of the checkout's own: the pin's bin or
entry, else the file --entry names, else "" so the checkout chooses. A
pin is what the project decided, so a flag does not move it; over a
checkout's ledger the flag wins, as cargo's --bin does.
def choice source · line 646 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
the file built, relative to the checkout: main.bend for a plain
repository unless --entry names another (laws/ToolBuiltFileChosen.bend)
def file source · line 650 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
the file built, in the checkout
def inside source · line 654 · raw
@+dir:String -> @+path:String -> String
a path's part under a directory, "" when it is not under it
def present.of source · line 660 · raw
@checkout:Co -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Bool
whether the file built is in the checkout: among the files git gave, or read where the checkout is. A file outside the checkout is not in it.
def present source · line 673 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Bool
whether the file built is there
def file.asks.of source · line 678 · raw
@checkout:Co -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> List<&2, 0x2414c9622cab2353684d02a392804eb1/src/tool/world.Ask>
the question whether the file built is there, for a checkout read where it is; git gave every file of one cloned now
def file.asks source · line 689 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> List<&2, 0x2414c9622cab2353684d02a392804eb1/src/tool/world.Ask>
def name.of source · line 694 · raw
@bare:Bool -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
the name the link and the binary are given: for a plain repository the
one plain.name gives it, and the package's for an ez project
def name.raw source · line 702 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
the name the link and the binary are given
def name source · line 706 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
the link's name: the package's, or app (laws/ToolBuiltFileChosen.bend)
def key source · line 711 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> 0x2414c9622cab2353684d02a392804eb1/src/ez/key.Stamp
what the binary is made from: the commit, the file and the bend (laws/ToolCacheReused.bend)
def stamp.of source · line 715 · raw
@key:0x2414c9622cab2353684d02a392804eb1/src/ez/key.Stamp -> String
the directory a record's binary lives in, named by the record
def bdir source · line 719 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
the directory of this record's binary
def out source · line 723 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
the binary
def key.at source · line 726 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
def was source · line 730 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> 0x2414c9622cab2353684d02a392804eb1/src/ez/key.Stamp
the binary's record as it was written, none when there is none
def there source · line 734 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Bool
whether the binary is there
def reuse source · line 738 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Bool
the binary is reused when it is there and its record is this one
def writes.of source · line 771 · raw
@+top:String -> @fs:List<&2, 0x2414c9622cab2353684d02a392804eb1/src/pkg/pkg.Source> -> List<&2, 0x2414c9622cab2353684d02a392804eb1/src/lock/plan.Effect>
every file of a checkout written under its top
def lay.of source · line 779 · raw
@checkout:Co -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Lay
the checkout laid, when git gave it now
def lay source · line 792 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Lay
the checkout laid under the cache, when it was cloned now
def make.of source · line 796 · raw
@reused:Bool -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Make
the binary reused, or built with its record
def make source · line 805 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Make
the binary built, or reused
def seen.step source · line 809 · raw
@here:Bool -> @rest:(@_:Unit -> Bool) -> Bool
one step of a scan that may stop at the first hit
def bare source · line 817 · raw
@+dir:String -> String
a directory with no trailing slash
def seen source · line 822 · raw
@+dir:String -> @ps:List<&2, String> -> Bool
whether this directory is one of the entries
def on.path source · line 830 · raw
@+dir:String -> @+path:String -> Bool
whether a directory is an entry of PATH
def bin.at source · line 834 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
the link directory, "" for none
def says source · line 839 · raw
@install:Bool -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> List<&2, String>
what a person is told once the link is written: that the directory is not on PATH, when it is not, and what was linked where
def finish.of source · line 847 · raw
@act:0x2414c9622cab2353684d02a392804eb1/src/tool/world.Act -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Finish
the program started, or the link written
def finish source · line 857 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Finish
what is done with the binary
def made source · line 861 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Plan
the plan once every answer is in and nothing refused
def decide.lock source · line 875 · raw
@missing:Bool -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Verdict
a lock is needed only for a binary that is built, and only by an ez project: a plain repository has none to have
def unlocked source · line 884 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Bool
whether the binary is to be built from an ez project with no lock
def cache.asks source · line 889 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> List<&2, 0x2414c9622cab2353684d02a392804eb1/src/tool/world.Ask>
the binary's record and whether it is there, asked together
def decide.cache source · line 893 · raw
@open:List<&2, 0x2414c9622cab2353684d02a392804eb1/src/tool/world.Ask> -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Verdict
the binary's record and whether it is there, still to ask
def missing.why source · line 902 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
why a missing file is refused: a file a pin names is the project's to fix,
and any other can be named with --entry
def decide.present source · line 908 · raw
@ok:Bool -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Verdict
a file to build that is not in the checkout is refused
def decide.file source · line 916 · raw
@open:List<&2, 0x2414c9622cab2353684d02a392804eb1/src/tool/world.Ask> -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Verdict
whether the file to build is there, still to ask
def name.what source · line 925 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> String
what a name that could not name a file is: a package's, or the one a plain repository would be linked as
def decide.name source · line 929 · raw
@ok:Bool -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Verdict
a name that could not name a file is refused
def decide.led source · line 938 · raw
@parsed:0x2414c9622cab2353684d02a392804eb1/src/ledger/manifest.Read -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Verdict
a checkout ledger that does not parse is refused
def decide.co source · line 946 · raw
@checkout:Co -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Verdict
the checkout answered, still to ask, or not to be had
def decide.loc source · line 958 · raw
@spot:Loc -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Verdict
what git says of a path, still to ask, or not to be had
def decide.tip source · line 968 · raw
@ok:Bool -> @+url:String -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Verdict
a remote's HEAD has to name a commit
def decide.said source · line 975 · raw
@said:0x2414c9622cab2353684d02a392804eb1/src/lock/up.Said -> @+url:String -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Verdict
def decide.head source · line 985 · raw
@found:Src -> @+url:String -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Verdict
a pin's commit is the lock's; a free remote's is asked of its HEAD
def decide.slug source · line 995 · raw
@ok:Bool -> @+url:String -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Verdict
a slug that could leave the cache is refused (laws/ToolRefusesBadSlug.bend)
def decide.place source · line 1002 · raw
@pl:0x2414c9622cab2353684d02a392804eb1/src/ez/target.Place -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Verdict
def decide.pin source · line 1013 · raw
@ok:Bool -> @+name:String -> @+rev:String -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Verdict
a pin at no commit cannot be built; its rev is a directory name, so it has to be one
def decide.src source · line 1022 · raw
@found:Src -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Verdict
what the target names, or why it names nothing
def decide.root source · line 1032 · raw
@got:Maybe<&2, String> -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Verdict
no cache root is refused
def decide.bin source · line 1040 · raw
@nowhere:Bool -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Verdict
nowhere to link is refused before anything is built
def decide source · line 1048 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Verdict
where a World stands
def plan.v source · line 1053 · raw
@verdict:Verdict -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Plan
the plan for where the World stands. One that still asks is a World the interpreter did not finish, and is refused rather than guessed at.
def plan source · line 1063 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Plan
ez tool run, install or upgrade over a World
def refuses.plan source · line 1067 · raw
@pl:Plan -> Bool
whether a plan ends in a refusal
def refuses source · line 1076 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Bool
whether a tool command refuses on a World
def step.v source · line 1085 · raw
@verdict:Verdict -> @+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Step
the step for where the World stands
def step source · line 1095 · raw
@+world:0x2414c9622cab2353684d02a392804eb1/src/tool/world.World -> Step
what the interpreter does next on a World
def sync.step source · line 1109 · raw
@bad:Bool -> @+name:String -> @rest:(@_:Unit -> String) -> String
a pin the lock lacks, or has at no commit, stops the scan; any other goes on to the rest
def sync.pinned source · line 1117 · raw
@+tool:0x2414c9622cab2353684d02a392804eb1/src/ledger/manifest.Cli -> Bool
whether the lock pins a tool at a commit
def sync.check source · line 1123 · raw
@ts:List<&2, 0x2414c9622cab2353684d02a392804eb1/src/ledger/manifest.Cli> -> @+body:String -> String
every tool the ledger names has to be pinned at a commit in the lock; why the first that is not is refused, "" when every one is
def names.of source · line 1132 · raw
@ts:List<&2, 0x2414c9622cab2353684d02a392804eb1/src/ledger/manifest.Cli> -> List<&2, String>
the names of the tools a ledger pins
def sync.why source · line 1140 · raw
@ok:Bool -> @+why:String -> @ts:List<&2, 0x2414c9622cab2353684d02a392804eb1/src/ledger/manifest.Cli> -> Sync
every name installed, or the refusal the scan found
def sync.lock source · line 1148 · raw
@got:Maybe<&2, String> -> @+ts:List<&2, 0x2414c9622cab2353684d02a392804eb1/src/ledger/manifest.Cli> -> Sync
a ledger with pins needs a lock that pins each at a commit
def sync.read source · line 1158 · raw
@led:0x2414c9622cab2353684d02a392804eb1/src/ledger/manifest.Read -> @got:Maybe<&2, String> -> Sync
a project ledger that does not parse is refused
def sync source · line 1168 · raw
@ledger:Maybe<&2, String> -> @lock:Maybe<&2, String> -> Sync
ez tool sync over the project's ledger and lock. With no ledger there is
no project to sync, and it is refused, as ez lock and ez fetch refuse
one.
def sync.outcome source · line 1179 · raw
@synced:Sync -> 0x2414c9622cab2353684d02a392804eb1/src/lock/plan.Outcome
how a sync ends once every install it runs has ended: 1 with the reason when it refused, and 0 when it did not (laws/ExitStatusSaysFailure.bend). An install that refuses ends the sync there, with its own status.
def sync.refuses source · line 1187 · raw
@synced:Sync -> Bool
whether a sync refuses
def sync.names source · line 1195 · raw
@synced:Sync -> List<&2, String>
the names a sync installs, none when it refuses
def lays source · line 1206 · raw
@layout:Lay -> Bool
whether a checkout is laid
def makes source · line 1214 · raw
@making:Make -> Bool
whether a binary is built
def linked source · line 1224 · raw
@fin:Finish -> Bool
whether a link is written
def writes source · line 1234 · raw
@pl:Plan -> Bool
whether a plan writes anything: a checkout laid, a binary built, a link
def builds source · line 1239 · raw
@pl:Plan -> Bool
whether a plan builds the binary
def built source · line 1244 · raw
@pl:Plan -> String
the file a plan builds, "" when it builds none
def fetches source · line 1255 · raw
@pl:Plan -> Bool
whether a plan fetches a lock before it builds
def built.lib source · line 1266 · raw
@pl:Plan -> String
the library a plan builds with, "" when it builds nothing
def launches source · line 1277 · raw
@pl:Plan -> Bool
whether a plan starts the program
def link.at source · line 1288 · raw
@pl:Plan -> String
the path a plan links, "" when it links none
def exit.of source · line 1306 · raw
@fin:Finish -> Exit
how a plan that goes on ends
def exit source · line 1316 · raw
@pl:Plan -> Exit
how a plan ends
def code source · line 1328 · raw
@ended:Exit -> @program:U32 -> U32
the status a tool command exits with, given the status the program it
started exited with (laws/ExitStatusSaysFailure.bend): 1 for a refusal, 0
for a command that ends without starting one, and the program's own status
for ez tool run. A command that starts nothing is handed 0 for it.