feat(cli): parallel tests, target names in explain and graph

This commit is contained in:
sneeker committed 2022-07-27 04:09:34 +00:00
1 parent a921f2e979
commit 7400708169
4 files changed
+87 -18

No files matched your search

+7
View File
@@ -5,6 +5,13 @@ let quote s =
let show cmd = String.concat " " (List.map quote (Array.to_list cmd))
(* A failing link can carry ten thousand object paths, and printing them all
buries the message the compiler actually wrote. *)
let brief ?(keep = 20) cmd =
let n = Array.length cmd in
if n <= keep then show cmd
else show (Array.sub cmd 0 keep) ^ Printf.sprintf " … and %d more arguments" (n - keep)
let devnull () = Unix.openfile "/dev/null" [ Unix.O_RDONLY ] 0
let capture cmd =