Skip to content

How to reference a separate script file which processes and returns output? #433

Answered by yhakbar
rdhar asked this question in Q&A
Discussion options

You must be logged in to vote

I shared an example script here that got @rdhar on the right path.

The crux of the solution is that:

  1. The script to be referenced is requireed in the script step that needs re-usable code as an exported function.
  2. Async functions need to be awaited in the calling script step.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rdhar
Comment options

Answer selected by rdhar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants