UNPKG

@joshfarrant/shortcuts-js

Version:
26 lines 662 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("../utils"); /** * @action Run Shortcut * @section Actions > Scripting > Shortcuts * @icon Shortcuts * * Run a shortcut from your shortcut. * * ```js * runShortcut({ * name: 'My Great Shortcut', * show: true, * }); * ``` */ const runShortcut = ({ name, show = false, }) => ({ WFWorkflowActionIdentifier: 'is.workflow.actions.runworkflow', WFWorkflowActionParameters: { WFWorkflowName: name, WFShowWorkflow: show, }, }); exports.default = utils_1.withActionOutput(runShortcut); //# sourceMappingURL=runShortcut.js.map