Last active
August 29, 2015 13:58
-
-
Save diosney/10129855 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = require('path'); | |
var routes = require('./lib/commands/routes'); | |
var director = require('director'); | |
var router = new director.cli.Router(); | |
router.on('system logging settings *', function () { | |
console.log('system logging settings *'); | |
}); | |
router.on('system logging settings', function () { | |
console.log('system logging settings'); | |
}); | |
router.on('system logging *', function () { | |
console.log('system logging *'); | |
}); | |
router.on('system logging', function () { | |
console.log('system logging'); | |
}); | |
router.on('system tunables *', function () { | |
console.log('system tunables *'); | |
}); | |
router.on('system tunables', function () { | |
console.log('system tunables'); | |
}); | |
router.on('system settings *', function () { | |
console.log('system settings *'); | |
}); | |
router.on('system settings', function () { | |
console.log('system settings'); | |
}); | |
router.on('system info *', function () { | |
console.log('system info *'); | |
}); | |
router.on('system info', function () { | |
console.log('system info'); | |
}); | |
router.on('system *', function () { | |
console.log('system *'); | |
}); | |
router.on('system', function () { | |
console.log('system'); | |
}); | |
// You will need to dispatch the cli arguments yourself | |
router.dispatch('on', process.argv.slice(2).join(' ')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment