Skip to main content

Module: @kosko/template

Interfaces

Functions

run

run(template, argv?): Promise<void>

Parse command line arguments and generate files with a template.

Parameters

NameTypeDescription
templateTemplate<any>Template
argvstring[]Command line arguments

Returns

Promise<void>

Defined in

packages/template/src/cli.ts:14


writeFiles

writeFiles(path, files): Promise<void>

Write files to the specified path.

Parameters

NameTypeDescription
pathstringDestination path
filesreadonly File[]Files to write

Returns

Promise<void>

Defined in

packages/template/src/write.ts:12