interface InitResult

What init did, so the caller can report it. Returned rather than printed: the CLI turns these into its messages, and a programmatic caller gets the same facts as data.

const result: InitResult = { written: ['/proj/test/tests.html'], skipped: [] };
result.written.length; // 1 — the fixture did not exist yet

Properties

written: string[]

Absolute paths of the files this call created.

skipped: string[]

Paths that already existed and were left alone.

Usage

import { type InitResult } from "lib/commands/init.ts";