Module: @kosko/template
Interfaces
Functions
run
▸ run(template, argv?): Promise<void>
Parse command line arguments and generate files with a template.
Parameters
| Name | Type | Description |
|---|---|---|
template | Template<any> | Template |
argv | string[] | 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
| Name | Type | Description |
|---|---|---|
path | string | Destination path |
files | readonly File[] | Files to write |
Returns
Promise<void>