import { type TemplateProps } from "https://deno.land/x/scaffold@0.3.0/src/template/define_template.ts";
Type Parameters
optional
Variables extends BaseVariables = BaseVariablesProperties
optional
getVariables: Callable<AnyVariables, BaseTemplateProps & PromptProps>Use the prompt to ask the user for input to determine the variables.
This is not always called, if the user decided to skip the prompt then it will be skipped.
Further docs can be found here: https://cliffy.io/docs@v0.24.2/prompt
import { defineTemplate } from 'https://deno.land/x/scaffold/mod.ts';
export defineTemplate({
gatherVariables: async (props) => {
const { prompt, } = props;
}
});
optional
getPermissions: Callable<Partial<ScaffoldPermissions>, MatchProps<Variables>>Gather the permissions for the worker.
Permissions that are approved will be cached so that the template can be without requesting new permissions every time.
These file will be included.
Starting a glob with the !
will negate the match. For clarity it is
advised to use the exclude
option instead.