UNPKG

@defer/redwood

Version:
23 lines (22 loc) 632 B
export const command = "function <name>"; export const description = "Add a Defer background function"; export const builder = (yargs) => { return yargs .commandDir("function") .option("force", { alias: "f", default: false, description: "Overwrite existing files", type: "boolean", }) .option("name", { alias: "n", default: "helloWorld", description: "Background function name", type: "string", }); }; export const handler = async (options) => { const { handler } = await import("./handler.js"); return handler(options); };