protorepl

mikebelanger 2016-09-15T11:59:04.000008Z

By ‘quicker', I mean a way of passing arbitrary arguments to boot, without having to open a shell emulator.

jasongilman 2016-09-15T13:19:21.000009Z

There's no way to do it right now without hacking up something. Enough people have asked for this that it seems like a good addition.

jasongilman 2016-09-15T13:19:52.000010Z

In the meantime if you're up for the hacking solution I'll find the particular file.

jasongilman 2016-09-15T13:23:03.000011Z

Actually there might be a way to do it. @mikebelanger, what are some examples of commands you want to send boot?

mikebelanger 2016-09-15T13:27:32.000012Z

@jasongilman thanks, I’m looking at ../lib/process/boot-runner.coffee, is that where I should start?

mikebelanger 2016-09-15T13:29:29.000013Z

@jasongilman I mean there’s the standard boot tasks, such as repl, cljs, and the new target task.

mikebelanger 2016-09-15T13:30:00.000014Z

But boot does allow for custom tasks so it would be preferable to pass any kind command.

jasongilman 2016-09-15T13:39:51.000015Z

@mikebelanger Ah so you want a way to just send arbitrary commands like compilation etc not just to start the REPL with a different commands?

mikebelanger 2016-09-15T13:42:29.000016Z

@jasongilman Yeah exactly. I know it sounds slightly out of the scope of proto-repl, but because proto-repl can already invoke boot without its repl tool, I figured it wouldn’t be too different

mikebelanger 2016-09-15T13:43:23.000017Z

@jasongilman But I could see this being a whole other package too, given how open-ended boot-clj is, and what proto-repl is meant to do.

jasongilman 2016-09-15T13:45:33.000018Z

Yeah it sounds like another package would be good for this. I could see the package being completely generic from boot. It would allow tying arbitrary shell commands to atom commands and keybindings. There may be something that already does this.

mikebelanger 2016-09-15T13:49:14.000019Z

@jasongilman yeah, and the Terminal Plus emulator can do that.

mikebelanger 2016-09-15T13:51:07.000020Z

@jasongilman That said, you can already pass arbitrary commands to boot via the package settings of proto-repl, I believe? I’m just looking to modify that field faster.

jasongilman 2016-09-15T13:57:02.000021Z

Yeah but it's only used for starting the REPL. The settings allow customizing how you do that but not adding arbitrary commands.

jasongilman 2016-09-15T14:02:33.000022Z

@mikebelanger: this looks really good https://atom.io/packages/atom-shell-commands

mikebelanger 2016-09-15T14:04:08.000024Z

@jasongilman cool thanks I’ll try that out

mikebelanger 2016-09-15T14:22:36.000025Z

@jasongilman wait, when you say ‘starting the REPL’ do you mean invoking boot’s repl command? I can get Proto-repl to behave perfectly nicely with boot, sans repl command

jasongilman 2016-09-15T14:23:38.000026Z

Yes I was saying you can change which command Proto REPL calls to start the REPL with boot. It should work by default.

mikebelanger 2016-09-15T14:29:31.000027Z

@jasongilman right ok, so it already works with arbitrary commands, like you said it works by default.

mikebelanger 2016-09-15T14:29:47.000028Z

Maybe I’ll look at the code myself, and try and hack out what I mean. I’m not making myself clear.