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 22
33## Added
44
5+ - Add ` --no-prefix ` or ` {:launchpad/options {:prefix false}} ` to hide the
6+ start-of-line per-process prefix in the output
7+
58## Fixed
69
710## Changed
Original file line number Diff line number Diff line change 5252 " --[no-]sayid" {:doc " Include Sayid dependency and middleware" }
5353 " --[no-]debug-repl" {:doc " Include gfredericks/debug-repl dependency and middleware" }
5454 " --[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" }])
5657
5758(def library-versions
5859 (:deps (edn/read-string (slurp (io/resource " launchpad/deps.edn" )))))
497498 (when (pos? size)
498499 (dotimes [i size]
499500 (when @newline?
500- (.write to (.getBytes prefix))
501+ (when prefix
502+ (.write to (.getBytes prefix)))
501503 (vreset! newline? false ))
502504 (let [b (aget buffer i)]
503505 (.write to (int b))
523525 _ (.putAll (.environment proc-builder) (or env (:env ctx)))
524526 color (mod (hash (or prefix (first cmd))) 8 )
525527 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))
527532 _ (swap! processes conj process)
528533 ctx (update ctx :processes (fnil conj []) process)]
529534 (when show-command?
You can’t perform that action at this time.
0 commit comments