command_mapper 0.1.0 and command_mapper-gen 0.1.0 released!
command_mapper is a new library for mapping in the options and arguments of external CLI commands to Ruby classes. This allows you to execute and interact with commands as if they were classes. command_mapper also provides a mini-type system for validating/formatting values and prevents any option or command injection for you.
command_mapper-gen can parse the
--help output (no small feat) and man page for a command and auto-generate the
CommandMapper class for the command. This can save you a lot of tedious typing.
Read more about how to use both libraries in the blog post.