Skip to content

Instantly share code, notes, and snippets.

@diosney
Last active August 29, 2015 13:58
Show Gist options
  • Save diosney/10129855 to your computer and use it in GitHub Desktop.
Save diosney/10129855 to your computer and use it in GitHub Desktop.
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