RubyFlow The Ruby and Rails community linklog


The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in