Searched refs:globalMiddleware (Results 1 – 3 of 3) sorted by relevance
12 function globalMiddlewareFactory (globalMiddleware, context) { argument22 Array.prototype.push.apply(globalMiddleware, callback) argument25 globalMiddleware.push(callback)
14 module.exports = function command (yargs, usage, validation, globalMiddleware) { argument19 globalMiddleware = globalMiddleware || []221 const middlewares = globalMiddleware.slice(0).concat(commandHandler.middlewares || [])
25 let globalMiddleware = []36 self.middleware = globalMiddlewareFactory(globalMiddleware, self)137 command = command ? command.reset() : Command(self, usage, validation, globalMiddleware)