Documentation
¶
Overview ¶
Command block locks a project's blockchain toolchain: declare tools in block.toml, pin them in block.lock, and reproduce them anywhere.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package cmd defines the block command line: lock, sync, exec.
|
Package cmd defines the block command line: lock, sync, exec. |
|
e2e
|
|
|
fakegh
command
Command fakegh serves the offline fake GitHub (internal/fakegh) for the atago end-to-end suite.
|
Command fakegh serves the offline fake GitHub (internal/fakegh) for the atago end-to-end suite. |
|
faketool
command
Command faketool stands in for a real blockchain CLI in the end-to-end suite.
|
Command faketool stands in for a real blockchain CLI in the end-to-end suite. |
|
internal
|
|
|
archive
Package archive extracts the tar.gz and zip archives upstreams publish.
|
Package archive extracts the tar.gz and zip archives upstreams publish. |
|
block
Package block implements the three operations behind the CLI:
|
Package block implements the three operations behind the CLI: |
|
cmdinfo
Package cmdinfo carries the build-time identity of the binary.
|
Package cmdinfo carries the build-time identity of the binary. |
|
diag
Package diag defines block's diagnostic codes: the stable, searchable names for the refusals block reports.
|
Package diag defines block's diagnostic codes: the stable, searchable names for the refusals block reports. |
|
doc
Package doc renders the parts of block's documentation that are derived from the registry rather than written by hand.
|
Package doc renders the parts of block's documentation that are derived from the registry rather than written by hand. |
|
fakegh
Package fakegh is an offline stand-in for the GitHub API and release downloads.
|
Package fakegh is an offline stand-in for the GitHub API and release downloads. |
|
fetch
Package fetch downloads artifacts into a content-addressed cache and verifies their SHA-256 digests.
|
Package fetch downloads artifacts into a content-addressed cache and verifies their SHA-256 digests. |
|
fserr
Package fserr answers one question about an error the operating system returned: did the write fail because there was nowhere to put the bytes?
|
Package fserr answers one question about an error the operating system returned: did the write fail because there was nowhere to put the bytes? |
|
github
Package github is the minimal GitHub REST client block needs: list the tags of a repository and fetch one release by tag.
|
Package github is the minimal GitHub REST client block needs: list the tags of a repository and fetch one release by tag. |
|
lockfile
Package lockfile reads and writes block.lock: the facts block resolved from a block.toml.
|
Package lockfile reads and writes block.lock: the facts block resolved from a block.toml. |
|
manifest
Package manifest reads block.toml: the human-written statement of which tools a project wants and roughly which versions.
|
Package manifest reads block.toml: the human-written statement of which tools a project wants and roughly which versions. |
|
platform
Package platform names the operating system / CPU pairs block can install artifacts for.
|
Package platform names the operating system / CPU pairs block can install artifacts for. |
|
recipe
Package recipe defines how block discovers versions and artifacts of one tool from its upstream.
|
Package recipe defines how block discovers versions and artifacts of one tool from its upstream. |
|
resolver
Package resolver turns a recipe plus a version constraint into a concrete upstream version and its per-platform artifacts.
|
Package resolver turns a recipe plus a version constraint into a concrete upstream version and its per-platform artifacts. |
|
shim
Package shim makes a project's locked tools runnable by their own names.
|
Package shim makes a project's locked tools runnable by their own names. |
|
snapshot
Package snapshot records where block's vendored registry came from and proves that it still is what was vendored.
|
Package snapshot records where block's vendored registry came from and proves that it still is what was vendored. |
|
store
Package store lays out block's per-user directory: a content-addressed download cache and the extracted tool installs.
|
Package store lays out block's per-user directory: a content-addressed download cache and the extracted tool installs. |
|
version
Package version parses the semantic versions that upstream tools publish and the constraints a block.toml declares against them.
|
Package version parses the semantic versions that upstream tools publish and the constraints a block.toml declares against them. |
|
Package registry holds the built-in recipes that tell block how to find a tool's releases upstream, and answers which tools exist for a blockchain system.
|
Package registry holds the built-in recipes that tell block how to find a tool's releases upstream, and answers which tools exist for a blockchain system. |
|
scripts
|
|
|
gen-docs
command
Command gen-docs writes the documentation block generates rather than writes by hand: doc/tools.md from the recipes embedded in this repository, and doc/errors.md from the diagnostic-code registry.
|
Command gen-docs writes the documentation block generates rather than writes by hand: doc/tools.md from the recipes embedded in this repository, and doc/errors.md from the diagnostic-code registry. |
|
registry-snapshot
command
Command registry-snapshot writes and checks registry/SNAPSHOT, the record of which block-registry revision block's vendored recipes came from.
|
Command registry-snapshot writes and checks registry/SNAPSHOT, the record of which block-registry revision block's vendored recipes came from. |
Click to show internal directories.
Click to hide internal directories.
