Fork me on GitHub
#protorepl
<
2016-09-15
>
mikebelanger11:09:04

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

jasongilman13:09:21

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.

jasongilman13:09:52

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

jasongilman13:09:03

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

mikebelanger13:09:32

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

mikebelanger13:09:29

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

mikebelanger13:09:00

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

jasongilman13:09:51

@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?

mikebelanger13:09:29

@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

mikebelanger13:09:23

@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.

jasongilman13:09:33

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.

mikebelanger13:09:14

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

mikebelanger13:09:07

@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.

jasongilman13:09:02

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

mikebelanger14:09:08

@jasongilman cool thanks I’ll try that out

mikebelanger14:09:36

@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

jasongilman14:09:38

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

mikebelanger14:09:31

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

mikebelanger14:09:47

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