Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
aheckmann committed Jan 25, 2013
1 parent 82fe503 commit 198abad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/createContext.js
Expand Up @@ -154,6 +154,8 @@ module.exports = exports = function (db, term, cb) {
term.displayPrompt();
return;
}

// assign db name getters on global `use` object
var dbs = res.documents[0].databases;
dbs.forEach(function (db) {
Object.defineProperty(context.use, db.name, {
Expand Down
1 change: 0 additions & 1 deletion lib/index.js
Expand Up @@ -56,7 +56,6 @@ function startShell (db, program, files) {

// overwrite the empty prompt line
process.stdout.write('\x1b[1A\r\n');
//process.stdout.write('\x1b[1A\x1b[0m');

createContext(db, term, function () {
executeFiles(files);
Expand Down

0 comments on commit 198abad

Please sign in to comment.