UNPKG

@joshfarrant/shortcuts-js

Version:
27 lines 743 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("../utils"); /** * @action Set Name * @section Actions > Scripting > Content * @icon Scripting * * Sets the name of the item passed as input. * * ```js * setName({ * name: 'Test', * dontIncludeFileExtension: true, * }); * ``` */ const setName = ({ name, dontIncludeFileExtension = false, }) => ({ WFWorkflowActionIdentifier: 'is.workflow.actions.setitemname', WFWorkflowActionParameters: { WFName: name, WFDontIncludeFileExtension: dontIncludeFileExtension, Advanced: dontIncludeFileExtension, }, }); exports.default = utils_1.withActionOutput(setName); //# sourceMappingURL=setName.js.map