l3nz / cli-matic

Compact, hands-free [sub]command line parsing library for Clojure.
Eclipse Public License 2.0
361 stars 29 forks source link

[Ftr] Improve integration suite with file downloads #80

Open l3nz opened 4 years ago

l3nz commented 4 years ago

Is your feature request related to a problem? Please describe.

It is important to have an integration suite that actually exercises important features. At the moment we don't exercise HTTP download for CLJS and no file download/coercion (JSON, YAML, etc) for CLJ.

Describe the solution you'd like

One could download files from GitHub, e.g. from here: https://github.com/l3nz/cli-matic/tree/master/examples-cljs-planck/data

This should work trivially when replicating https://github.com/l3nz/cli-matic/blob/master/examples-cljs-planck/read-file.cljs in the CLJ area.

The problem is that the world is HTTPS now, and Planck crashes on HTTPS. Any chance of downloading from GitHub as HTTP?

Tests are to be added at https://github.com/l3nz/cli-matic/blob/a4ccc97c410e0501c967adbffd2a3fe3da5fde7a/scriptTester.sh#L191

l3nz commented 4 years ago

Maybe this could hlp somehow? https://docs.postman-echo.com/?version=latest