fix command line tool and bump version

This commit is contained in:
Sami Samhuri 2011-05-18 00:05:40 -07:00
parent 20c49da9ca
commit 934b3980b6
2 changed files with 4 additions and 3 deletions

View file

@ -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 <filename>, .unstash <filename>, .editor <editor>')
repl.outputStream.write('Commands: .edit, .run, .stash <filename>, .unstash <filename>, .editor <editor>\n')
repl.displayPrompt()
repl.defineCommand('edit', {
help: 'Edit the current command in your text editor',

View file

@ -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 <sami@samhuri.net>"
, "repository" :