@@ -8,7 +8,7 @@ function! s:RunRepl(cmd)
8
8
endif
9
9
endfunction
10
10
11
- function ! jack_in#boot (... )
11
+ function ! jack_in#boot_cmd (... )
12
12
let l: boot_string = ' boot -x -i "(require '' cider.tasks)"'
13
13
for [dep , inj] in items (g: jack_in_injections )
14
14
let l: boot_string .= printf (' -d %s:%s' , dep , inj[' version' ])
@@ -22,10 +22,14 @@ function! jack_in#boot(...)
22
22
else
23
23
let l: boot_task = g: default_boot_task
24
24
endif
25
- call s: RunRepl ( l: boot_string .' ' .l: boot_task)
25
+ return l: boot_string .' ' .l: boot_task
26
26
endfunction
27
27
28
- function ! jack_in#lein (... )
28
+ function ! jack_in#boot (... )
29
+ call s: RunRepl (call (function (' jack_in#boot_cmd' ), a: 000 ))
30
+ endfunction
31
+
32
+ function ! jack_in#lein_cmd (... )
29
33
let l: lein_string = ' lein'
30
34
for [dep , inj] in items (g: jack_in_injections )
31
35
let l: dep_vector = printf (' ' ' [%s "%s"]'' ' , dep , inj[' version' ])
@@ -41,10 +45,15 @@ function! jack_in#lein(...)
41
45
else
42
46
let l: lein_task = g: default_lein_task
43
47
endif
44
- call s: RunRepl (l: lein_string .' ' .l: lein_task )
48
+
49
+ return l: lein_string .' ' .l: lein_task
45
50
endfunction
46
51
47
- function ! jack_in#clj (... )
52
+ function ! jack_in#lein (... )
53
+ call s: RunRepl (call (function (' jack_in#lein_cmd' ), a: 000 ))
54
+ endfunction
55
+
56
+ function ! jack_in#clj_cmd (... )
48
57
let l: clj_string = ' clj'
49
58
let l: deps_map = ' {:deps {'
50
59
let l: cider_opts = ' -e '' (require (quote cider-nrepl.main)) (cider-nrepl.main/init ['
@@ -57,7 +66,9 @@ function! jack_in#clj(...)
57
66
let l: deps_map .= ' }}'
58
67
let l: cider_opts .= ' ])'' '
59
68
60
- let l: command = l: clj_string . ' ' . join (a: 000 , ' ' ) . ' -Sdeps '' ' . l: deps_map . ' ' ' ' . l: cider_opts . ' '
69
+ return l: clj_string . ' ' . join (a: 000 , ' ' ) . ' -Sdeps '' ' . l: deps_map . ' ' ' ' . l: cider_opts . ' '
70
+ endfunction
61
71
62
- call s: RunRepl (l: command )
72
+ function ! jack_in#clj (... )
73
+ call s: RunRepl (call (function (' jack_in#clj_cmd' ), a: 000 ))
63
74
endfunction
0 commit comments