IF Commons GitHub

physical/verbs/serve

Written to: 4 requirements: 4 proved, 0 partly, 0 failing, 0 with no test recorded. 0006-anyfs-cli-serve FR-001, 0006-anyfs-cli-serve FR-002, 0006-anyfs-cli-serve FR-003, 0006-anyfs-cli-serve FR-004

The verb that serves a store (commons anyfs-cli 0006-anyfs-cli-serve FR-001 to FR-004): serve LOCATION hosts the place a word names as WebDAV through anyfs-serve, so that an operating system mounts it with no kernel module. It listens on the loopback with a token it makes and writes to standard error (never to the report, so that a pipe of the report does not carry it), says the address, and waits until the person stops it (SIGINT, SIGTERM) or the host does. A directory below the root of a store is served as the root of the server; a mount that is read-only, or --read-only, serves nothing that changes. An address that is not the loopback needs --allow-host for the names it may be asked for.

import { serveVerbs } from "./serve.ts";
// serveVerbs(host).map((v) => v.name); // ["serve"]

Source: commons/anyfs-cli/src/physical/verbs/serve.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.

serveVerbsfunctionno test imports it
function serveVerbs(host: Host): readonly Command[]

The verb that serves a store.

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