IF Commons GitHub

physical/verbs/sync

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0003-repoctl-sync FR-002

repoctl sync and repoctl merge on Headless (commons repoctl 0003-repoctl-sync FR-002 to FR-006): the verbs that keep the generated files as their generators make them. sync makes them in dependency order, rerunning only the stale ones; with --check it writes nothing and ends with 1 naming each generator that is stale and the command that fixes it, which is what CI and the hooks run; --dry-run says what it would make. merge merges a reference and makes the generated files that conflict again, never by hand.

import { syncVerb } from "@intellectual-frontiers/repoctl/physical";
typeof syncVerb; // "function"

Source: commons/repoctl/src/physical/verbs/sync.ts

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

physical.syncTextfunctionno test imports it
function syncText(r: SyncReport, wouldOnly: boolean): string

The lines of a sync for a person.

physical.syncDatafunctionno test imports it
function syncData(r: SyncReport): unknown

The data of a sync, for --json.

physical.syncVerbconstno test imports it
const syncVerb: Make

repoctl sync.

physical.mergeDonefunctionno test imports it
function mergeDone(r: MergeReport, ref: string): Done

The findings and the lines of a merge.

physical.mergeVerbconstno test imports it
const mergeVerb: Make

repoctl merge <ref>.

syncTextfunctionno test imports it
function syncText(r: SyncReport, wouldOnly: boolean): string

The lines of a sync for a person.

syncDatafunctionno test imports it
function syncData(r: SyncReport): unknown

The data of a sync, for --json.

syncVerbconstno test imports it
const syncVerb: Make

repoctl sync.

mergeDonefunction
function mergeDone(r: MergeReport, ref: string): Done

The findings and the lines of a merge.

Imported by 5 tests of the run (5 passed, 0 failed): the library's results

mergeVerbconstno test imports it
const mergeVerb: Make

repoctl merge <ref>.

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