Skip to content

@saflib/workflows


Interface: CopyStepInput

Input for the CopyStepMachine.

Properties

lineReplace()?

optional lineReplace: (line) => string

Optional argument to do custom string transformations of template files and paths.

Parameters

ParameterType
linestring

Returns

string


name?

optional name: string

kebab-case name of the thing being created from the template. Will be used to query replace instances of "template-file" and other variants like templateFile and template_file, though this behavior is deprecated and it's recommended to use the lineReplace function instead.


targetDir

targetDir: string

Absolute path to the directory where the updated copies of the template files will go.