Closed chrisinmtown closed 4 years ago
@holmari please consider this revision and I hope you will comment on the code. But don't merge it :) at least not yet. The REST API yields JSON in a different format from the ssh/query interface, so the files downloaded by this change can't be analyzed! I'm working on that next.
The REST API is giving me trouble, I'll come back with an updated PR if/when I figure it out.
Add command-line option -c for command-line tool; ssh, curl, wget. Add rest package with REST version of downloader including the API query and output formats. Refactor the ssh package such as creation of several abstract classes to allow reuse in the rest package and reduce repeated code.