alavrik / piqi

Piqi – universal schema language: JSON, XML, Protocol Buffers data validation and conversion
http://piqi.org
Apache License 2.0
246 stars 36 forks source link

adds commands to piqi frontend #70

Closed ivg closed 2 years ago

ivg commented 2 years ago

When testing installation using opam, I noticed that piqi command doesn't list any commands. Indeed, the run module doesn't register any and the commands are provided by other modules that are not referenced in run.ml. This commit fixes the issue and packs the commands implementations into the private commands library, which is linked with -linkall to the main executable.

I made the library private by default, i.e., no cmi are installed and modules are not accessible outside of the src folder, but we can easily make it public, if necessary.

alavrik commented 2 years ago

Thank you @ivg