docs: function createNextFunction (action, resolver) {
    return function next (...args) {
      var path = typeof args[0] === 'string' ? args[0] : null;
      var arg = path ? args[1] : args[0];
  
      var result = {
        path: path ? path : action.defaultOutput,
        args: arg
      };
  
      if (resolver) {
        resolver(result);
      } else {
        next._result = result;
      }
    };
  }