mirror of
https://github.com/samsonjs/repl-edit.git
synced 2026-03-25 09:25:49 +00:00
fix command line tool and bump version
This commit is contained in:
parent
20c49da9ca
commit
934b3980b6
2 changed files with 4 additions and 3 deletions
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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" :
|
||||
|
|
|
|||
Loading…
Reference in a new issue