particle-iot / particle-cli

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

Feature/sc 124023/create refactor #705

Closed hugomontero closed 11 months ago

hugomontero commented 11 months ago

Description

This PR contains the changes regarding the lf refactor for create command Also this PR fix the structure for logic.json file to meet the SDD requirements

How to Test

  1. Pull down the branch: git pull && git checkout feature/sc-124023/create-refactor
  2. Install dependencies: npm i
  3. Run tests: npm run test:ci
  4. Attempt to create a new logic function
    • without params: npm start -- lf create /my/lf/path
    • With name param: npm start -- lf create --name "my logic function name" /my/lf/path
    • with org param: npm start -- lf create --org /my/lf/path
  5. Attempt to get an existent logic function

outcome

Related Issues / Discussions

Story details: https://app.shortcut.com/particle/story/124023

Completeness