mirror of
https://github.com/samsonjs/repl-edit.git
synced 2026-04-25 14:47:45 +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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!theRepl || typeof theRepl.defineCommand !== function) {
|
if (!theRepl || typeof theRepl.defineCommand !== 'function') {
|
||||||
console.error('bad argument, repl is not compatible')
|
console.error('bad argument, repl is not compatible')
|
||||||
return
|
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', {
|
repl.defineCommand('edit', {
|
||||||
help: 'Edit the current command in your text editor',
|
help: 'Edit the current command in your text editor',
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ "name" : "repl-edit"
|
{ "name" : "repl-edit"
|
||||||
, "description" : "Edit code in the repl using a real text editor"
|
, "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"
|
, "homepage" : "http://samhuri.net/proj/repl-edit"
|
||||||
, "author" : "Sami Samhuri <sami@samhuri.net>"
|
, "author" : "Sami Samhuri <sami@samhuri.net>"
|
||||||
, "repository" :
|
, "repository" :
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue