ts2asl
ts2asl copied to clipboard
feature: Use source comment to set step name (if given), rather than paraphrasing the source code
e.g.
// Update User
asl.sdk(DynamoDB).updateItem(...)
The AST appears to include the preceeding comment as part of the block, but would need a regex or similar to extract any pertinent part, as it might be multiline or irrelevant. Possible that a token could be used, either jsdoc style or something like // Name: xxx
. The same could be said for the comment.