Skip to content

Commit

Permalink
dao acl *: Add middleware (aragon#256)
Browse files Browse the repository at this point in the history
* 5.2.0-beta.3

* dao acl: Add middleware
  • Loading branch information
izqui authored and 0xGabi committed Jan 5, 2019
1 parent 39ced38 commit b7262b4
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion packages/aragon-cli/src/commands/dao_cmds/acl.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,28 @@
const viewCommand = require('./acl_cmds/view')

const {
manifestMiddleware,
moduleMiddleware,
environmentMiddleware
} = require('../../middleware')

const MIDDLEWARES = [
manifestMiddleware,
moduleMiddleware,
environmentMiddleware
]

exports.command = 'acl <dao>'

exports.describe = 'Shortcut for aragon dao acl view <dao>'

exports.builder = function (yargs) {
return yargs.commandDir('acl_cmds')
return yargs.commandDir('acl_cmds', {
visit: (cmd) => {
cmd.middlewares = MIDDLEWARES
return cmd
}
})
}

exports.handler = viewCommand.handler

0 comments on commit b7262b4

Please sign in to comment.