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
Pull down the branch: git pull && git checkout feature/sc-124023/create-refactor
Install dependencies: npm i
Run tests: npm run test:ci
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
Attempt to get an existent logic function
outcome
Test should pass
create without params will ask you to write name and description
create with params will skip the prompt for a name
create for an org will still work
get an existent lf will create the required files with the right logic.json structure
Description
This PR contains the changes regarding the
lf
refactor forcreate
command Also this PR fix the structure forlogic.json
file to meet the SDD requirementsHow to Test
git pull && git checkout feature/sc-124023/create-refactor
npm i
npm run test:ci
npm start -- lf create /my/lf/path
npm start -- lf create --name "my logic function name" /my/lf/path
npm start -- lf create --org /my/lf/path
outcome
name
anddescription
name
lf
will create the required files with the rightlogic.json
structureRelated Issues / Discussions
Story details: https://app.shortcut.com/particle/story/124023
Completeness