1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const Case = require("case");
|
4 | const path = require("path");
|
5 | const helpers_1 = require("../helpers");
|
6 | exports.default = async (command, auth, type, name) => {
|
7 | const vars = getVars(name, auth, type);
|
8 | return await helpers_1.copyFiles(command, path.join(`generate/function`, auth, type), command.locator.srcFunctionsDir, vars);
|
9 | };
|
10 | function getVars(name, authType, functionType) {
|
11 | return {
|
12 | authType,
|
13 | functionType,
|
14 | fileName: name,
|
15 | functionClassName: Case.pascal(name)
|
16 | };
|
17 | }
|