interface GenerateResult

What generate did: the file it wrote, or the one it refused to overwrite.

const result: GenerateResult = { path: '/proj/test/login-test.js', created: true };
result.created; // false would mean the file was already there and was left alone

Properties

path: string

Absolute path of the target file.

created: boolean

false when the file already existed and nothing was written.

Usage

import { type GenerateResult } from "lib/commands/generate.ts";