Hello all, I did some init.coffee
like
atom.commands.add 'atom-text-editor', 'fabrao:repl-deps', ->
editor = atom.workspace.getActiveTextEditor()
caminhoArquivo = atom.workspace.getActiveTextEditor().getPath()
projetos = atom.project.rootDirectories.filter (projeto) -> caminhoArquivo.indexOf(projeto.realPath) isnt -1
if projetos.length
comando_executar = '"cd ' + projetos[0].realPath + " ; clj -J'-Dclojure.server.repl={:port,5555,:accept,clojure.core.server/repl}'"
console.log comando_executar
spawn("powershell.exe", ["-Command", comando_executar], {shell: true, detached: true})
atom.commands.dispatch(atom.views.getView(editor), 'chlorine:connect-socket-repl')
else
alert("Projeto não encontrado")
to start powershell
Window and start the connection dialog for Chlorine. Is there any way to connect direct without show the dialog and passing the values of host
and port
?Not yet 🙂. There's an open issue for it 🙂