Commandex - Make complex actions a first class data type

New updates out for v0.3.0!

Parameter Defaults

You can now set param defaults like so:

command do
  param :limit, default: 20
  param :offset, default: 0
end

new/0

The params for new/1 have been made optional!

Pipelines support 1-arity functions

You can now specify a 1-arity function that takes only the command as an argument. Useful for quick inspecting, or passing to other similar protocols.

command do
  pipeline &IO.inspect/1
end
1 Like