From 934b3980b64d6cc56312dae6bbf3b520ea55d342 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Wed, 18 May 2011 00:05:40 -0700 Subject: [PATCH] fix command line tool and bump version --- lib/index.js | 5 +++-- package.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/index.js b/lib/index.js index f79463c..c7ce908 100644 --- a/lib/index.js +++ b/lib/index.js @@ -30,7 +30,7 @@ function extendRepl(theRepl) { return } - if (!theRepl || typeof theRepl.defineCommand !== function) { + if (!theRepl || typeof theRepl.defineCommand !== 'function') { console.error('bad argument, repl is not compatible') return } @@ -46,7 +46,8 @@ function extendRepl(theRepl) { } }) - console.log('Commands: .edit, .run, .stash , .unstash , .editor ') + repl.outputStream.write('Commands: .edit, .run, .stash , .unstash , .editor \n') + repl.displayPrompt() repl.defineCommand('edit', { help: 'Edit the current command in your text editor', diff --git a/package.json b/package.json index 7828a31..3bf9b66 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name" : "repl-edit" , "description" : "Edit code in the repl using a real text editor" -, "version" : "0.9.0" +, "version" : "0.9.1" , "homepage" : "http://samhuri.net/proj/repl-edit" , "author" : "Sami Samhuri " , "repository" :