IF Commons GitHub

physical/verbs/bridge

Written to: 2 requirements: 2 proved, 0 partly, 0 failing, 0 with no test recorded. 0004-anyfs-cli-surfaces FR-012, 0004-anyfs-cli-surfaces FR-013

The verbs of the program that bring directories of two stores together through the bridge (commons anyfs-cli 0004-anyfs-cli-surfaces FR-012, FR-013): sync, check, bisync and mirror. Each makes a plan first and prints it with its hash; nothing is changed without --yes (which Headless asks of a destruction), and --plan-hash pins the apply to the plan that was read, so a store that changed in between makes it a refusal and not a surprise. The base of a two-way sync and the ledger of a mirror are small files in the state folder of the program, named by the two sides.

import { bridgeVerbs } from "./bridge.ts";
// bridgeVerbs(host).map((v) => v.name); // ["sync", "check", "bisync", "mirror"]

Source: commons/anyfs-cli/src/physical/verbs/bridge.ts

0 of 1 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

bridgeVerbsfunctionno test imports it
function bridgeVerbs(host: Host): readonly Node[]

The verbs that bring directories of two stores together.

Titles, headings, exports, tables, columns and requirements. Esc closes.