~/bend-docscommunity

main.bend checks

raw source on the hub · import 0x046551eff0d59a82cf10d858b17b0c84/main.bend as Main

ezx: ez's ledger library for Bend 2: it parses an ez.toml into its package, dependencies and pinned tools.

main: the library's entry, which the hub publishes as ezx. It names the reading ledger/manifest.bend does, one def each, so a program can read a ledger by importing this file alone; the types the answers come in are ledger/manifest.bend's, and a program that takes one apart imports that file too. It sits at the top of the repo so the LICENSE beside it goes along with the package. The ez binary is ez/main.bend, which ez.toml names as bin.

2 imports
import Base
import ./ledger/manifest.bend as M

Definitions

def parse source · line 14 · raw

@text:String -> 0x046551eff0d59a82cf10d858b17b0c84/ledger/manifest.Read

an ez.toml's text read as a ledger, or why it could not be

def show source · line 18 · raw

@ledger:0x046551eff0d59a82cf10d858b17b0c84/ledger/manifest.Read -> String

a ledger, or the error, on one line

def dep source · line 22 · raw

@ledger:0x046551eff0d59a82cf10d858b17b0c84/ledger/manifest.Read -> @name:String -> 0x046551eff0d59a82cf10d858b17b0c84/ledger/manifest.Dep

the named dependency of a ledger, or one with empty fields

def dep.name source · line 26 · raw

@dependency:0x046551eff0d59a82cf10d858b17b0c84/ledger/manifest.Dep -> String

a dependency's own name

def dep.hash source · line 30 · raw

@dependency:0x046551eff0d59a82cf10d858b17b0c84/ledger/manifest.Dep -> String

a dependency's hash, the 0x name its import line carries

def dep.entry source · line 34 · raw

@dependency:0x046551eff0d59a82cf10d858b17b0c84/ledger/manifest.Dep -> String

the file inside the package a dependency was added by

def dep.source source · line 38 · raw

@dependency:0x046551eff0d59a82cf10d858b17b0c84/ledger/manifest.Dep -> 0x046551eff0d59a82cf10d858b17b0c84/ledger/manifest.Source

where a dependency's bytes come from

def source.rev source · line 42 · raw

@src:0x046551eff0d59a82cf10d858b17b0c84/ledger/manifest.Source -> String

the commit a source is pinned to, or "" for a hub package

def source.tag source · line 46 · raw

@src:0x046551eff0d59a82cf10d858b17b0c84/ledger/manifest.Source -> String

the tag a source was asked for, or "" when it was pinned by commit

def source.url source · line 50 · raw

@src:0x046551eff0d59a82cf10d858b17b0c84/ledger/manifest.Source -> String

the repo a source is taken from, or "" for a hub package

def source.nv source · line 54 · raw

@src:0x046551eff0d59a82cf10d858b17b0c84/ledger/manifest.Source -> String

the <name>@<version> a hub source was added by, or ""

def source.is_git source · line 58 · raw

@src:0x046551eff0d59a82cf10d858b17b0c84/ledger/manifest.Source -> Bool

whether a source names a repo rather than the hub

def rev_of source · line 62 · raw

@ledger:0x046551eff0d59a82cf10d858b17b0c84/ledger/manifest.Read -> @name:String -> String

the commit the named dependency is pinned to

def tag_of source · line 66 · raw

@ledger:0x046551eff0d59a82cf10d858b17b0c84/ledger/manifest.Read -> @name:String -> String

the tag the named dependency was asked for

def hub_of source · line 70 · raw

@ledger:0x046551eff0d59a82cf10d858b17b0c84/ledger/manifest.Read -> String

the hub a ledger's packages come from

def tools_of source · line 74 · raw

@ledger:0x046551eff0d59a82cf10d858b17b0c84/ledger/manifest.Read -> List<&2, 0x046551eff0d59a82cf10d858b17b0c84/ledger/manifest.Tool>

the pinned CLIs of a ledger

def tool.name source · line 78 · raw

@pin:0x046551eff0d59a82cf10d858b17b0c84/ledger/manifest.Tool -> String

a tool's own name