File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Added
4
4
5
+ - Add ` --no-prefix ` or ` {:launchpad/options {:prefix false}} ` to hide the
6
+ start-of-line per-process prefix in the output
7
+
5
8
## Fixed
6
9
7
10
## Changed
Original file line number Diff line number Diff line change 52
52
" --[no-]sayid" {:doc " Include Sayid dependency and middleware" }
53
53
" --[no-]debug-repl" {:doc " Include gfredericks/debug-repl dependency and middleware" }
54
54
" --[no-]go" {:doc " Call (user/go) on boot" }
55
- " --[no-]namespace-maps" {:doc " Disable *print-namespace-maps* through nREPL middleware" }])
55
+ " --[no-]namespace-maps" {:doc " Disable *print-namespace-maps* through nREPL middleware" }
56
+ " --[no-]prefix" {:doc " Disable per-process prefix" }])
56
57
57
58
(def library-versions
58
59
(:deps (edn/read-string (slurp (io/resource " launchpad/deps.edn" )))))
497
498
(when (pos? size)
498
499
(dotimes [i size]
499
500
(when @newline?
500
- (.write to (.getBytes prefix))
501
+ (when prefix
502
+ (.write to (.getBytes prefix)))
501
503
(vreset! newline? false ))
502
504
(let [b (aget buffer i)]
503
505
(.write to (int b))
523
525
_ (.putAll (.environment proc-builder) (or env (:env ctx)))
524
526
color (mod (hash (or prefix (first cmd))) 8 )
525
527
prefix (str " [" (ansi-fg (+ 30 color) (or prefix (first cmd))) " ] " )
526
- process (pipe-process-output (.start proc-builder) prefix)
528
+ process (pipe-process-output
529
+ (.start proc-builder)
530
+ (when-not (false ? (:prefix ctx))
531
+ prefix))
527
532
_ (swap! processes conj process)
528
533
ctx (update ctx :processes (fnil conj []) process)]
529
534
(when show-command?
You can’t perform that action at this time.
0 commit comments