brainlife / cli

brainlife.io Command Line Interface (CLI)
https://brainlife.io
MIT License
2 stars 6 forks source link

[ENH] Rework data upload and some util functions #52

Open anibalsolon opened 2 years ago

anibalsolon commented 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

soichih commented 2 years ago

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?

anibalsolon commented 2 years ago

@soichih Yes! I will work on it