         else
           throw Error "Invalid handler: #{child.handler}"
         child.command ?= command
-        middlewares.push module: parent.module, plugin: true
         m = load_module(ctx, child, default_command, command)
         middlewares.push m... if m
   else

    options = {}
  new Run options, config


# Configuration
load_module = (ctx, parent, default_command, filter_command) ->
  middlewares = []

    parent.handler = undefined
    parent[k] ?= v for k, v of mod
  if plugin
    middlewares.push module: parent.module, plugin: true
    commands = parent.handler.call ctx
    return unless commands
    return if commands is ctx
