particle-iot / particle-cli

Command Line Interface for Particle Cloud and devices
Apache License 2.0
212 stars 92 forks source link

feature/sc-123396/implement-execute-command-with-eventdata #692

Closed hugomontero closed 12 months ago

hugomontero commented 1 year ago

Description

This PR will add logic execute command in order to execute a logic function and get the logs and result

How to Test

  1. Pull down branch: git pull && git checkout feature/sc-123396/implement-execute-command-with-eventdata
  2. Install dependencies: npm i
  3. Run unit tests: npm run test:unit
  4. Attempt to execute a logic function previously created
  5. Attempt to execute a logic function that will fails (syntax error for instance)
  6. Attempt to execute a logic function in a dir with more that one .js files

Outcome

Related Issues / Discussions

Story details: https://app.shortcut.com/particle/story/123396/implement-execute-command-with-eventdata

Completeness