command_wrapper

Wrap command-line programs in Crystal
0.1.3 Latest release released

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:

  1. Rewrite the software in Crystal
  2. Use the software via C bindings in Crystal
  3. 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.
command_wrapper:
  git: https://codeberg.org/CampineComputing/command_wrapper.git
  version: ~> 0.1.3
License EUPL-1.2
Crystal >= 1.10, < 2.0

Authors

Dependencies 0

Development Dependencies 1

  • ameba
    {'github' => 'crystal-ameba/ameba'}

Dependents 1

Last synced .
search fire star recently