Skip to content

Instantly share code, notes, and snippets.

@lxbarth
Created January 24, 2012 22:45
Show Gist options
  • Save lxbarth/1673205 to your computer and use it in GitHub Desktop.
Save lxbarth/1673205 to your computer and use it in GitHub Desktop.
var path = require('path'),
fs = require('fs');
Bones.Command.options['files'] = {
'title': 'files=[path]',
'description': 'Path to files directory.',
'default': function(options, config) {
return path.join(process.cwd(), 'files');
}
};
Bones.Command.options['couchHost'] = {
'title': 'couchHost=[host]',
'description': 'Couch DB Host.',
'default': '127.0.0.1'
};
Bones.Command.options['couchPort'] = {
'title': 'couchPort=[port]',
'description': 'Couch DB port.',
'default': '5984'
};
Bones.Command.options['couchPrefix'] = {
'title': 'couchPrefix=[prefix]',
'description': 'Couch DB database name prefix.',
'default': 'gain'
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment