Open anibalsolon opened 2 years ago
This PR gives some structure for the cli commands, handling common errors and async/promise instead of callbacks.
For data upload, it uses the commander parsing to verify the arguments.
It solves these two issues + the start for commander upgrade: https://github.com/brainlife/cli/issues/51 https://github.com/brainlife/brainlife/issues/200
Thanks for the PR @anibalsolon !! Are you going to update other CLIs also? I believe we need to patch all commands since we are upgrading commander?
@soichih Yes! I will work on it
This PR gives some structure for the cli commands, handling common errors and async/promise instead of callbacks.
For data upload, it uses the commander parsing to verify the arguments.
It solves these two issues + the start for commander upgrade: https://github.com/brainlife/cli/issues/51 https://github.com/brainlife/brainlife/issues/200