Closed YUUU23 closed 1 month ago
Visit the preview URL for this PR (updated for commit 1cc9e92):
https://ccv-honeycomb--pr516-add-commander-9itykqix.web.app
(expires Wed, 21 Aug 2024 06:47:16 GMT)
🔥 via Firebase Hosting GitHub Action 🌎
Sign: 4ace1dcea913a952d2a1af84b94a4421bf36e610
Actually @YUUU23 can you test what this PR would look like if merging into v3.4.2
? All of the commander stuff with the CLI script should't have to wait until v4 to work but I'm not entirely sure.
Actually @YUUU23 can you test what this PR would look like if merging into
v3.4.2
? All of the commander stuff with the CLI script should't have to wait until v4 to work but I'm not entirely sure.
It seems like all the forward commits for v4 features would also be on this branch to be merged into 3.4.2. Do you know if it's possible to rebase on a branch with less features that would delete those v4 features 3.4.2 doesn't have? Otherwise, I think I can also move the CLI script code into a new branch based off of 3.4.2 and open a new PR since the CLI code are all in one file.
To have this in writing - let's leave it as a change for v4 for right now. Eventually we will release the version and we can include a quick write up for bringing the CLI script into older versions of Honeycomb
I commented to simplify some logical expressions. Looks like Rob reviewed this quite a bit ! Small changes, otherwise looks good to go !
Thank you so much for reviewing this!!
Reverted changes Most recent changes in this PR: https://github.com/brown-ccv/honeycomb/pull/531
commander
and initialize commander to be usedmain()
as before, all prompts will be askedmain()
if not (validating functions originally in prompt functions are pulled out for this purpose)npm run cli download [study ID] [participant ID]
ornpm run cli delete [study ID] [participant ID]
, relative global variables (ACTION
,STUDY_ID
,PARTICIPANT_ID
) are set to what's provided through command line input, skipping those prompts since we have a value assigned to the global variables alreadyI accidentally pushed the code to the actual
feat-v4
branch, but I reverted this commit (now in this PR)! Sorry about this