Navigation Menu

Skip to content

Commit

Permalink
Add "resolve" class method to CommandLineInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 9, 2012
1 parent e846db7 commit b8c83a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/command-line.js
Expand Up @@ -2,6 +2,7 @@ var program = require('commander');
var nroonga = require('./wrapped-nroonga');
var Domain = require('./database/domain').Domain;
var version = require('../package').version;
var path = require('path');

var defaultDatabasePath =
exports.defaultDatabasePath =
Expand Down Expand Up @@ -87,4 +88,8 @@ CommandLineInterface.prototype = {
};
exports.CommandLineInterface = CommandLineInterface;

CommandLineInterface.resolve = function(path) {
return path.resolve(process.cwd(), path);
};

exports.Domain = CommandLineInterface.Domain = Domain;

0 comments on commit b8c83a3

Please sign in to comment.