command_wrapper
Command Wrapper
Wrap command-line programs in Crystal.
The command_wrapper library is licensed under the EUPL 1.2 or later. Consider command_wrapper beta software until I've completed the steps outlined in section Roadmap.
Motivation
When you want to use existing software with, from, or in your Crystal programs, you've basically three options. Each option has its uses, advantages, and disadvantages:
- Rewrite the software in Crystal
- Use the software via C bindings in Crystal
- Run the software as a subprocess from Crystal
Command_wrapper simplies the third approach. It offers you a domain-specific language to quickly wrap an existing command-line program in a Crystal class and call that program via that class.
Roadmap
- Investigate and implement a nice way to wrap commands with subcommands.
- Write a manual on how to use command_wrapper
- Apply command_wrapper to at least three different non-trivial command-line applications. These wrapped commands become part of command_wrapper's acceptance test suite.