Closed zerosnacks closed 2 weeks ago
I think we should really just drop -j
as short for json, it is not common anywhere and usually means jobs (threads), like in makefile
I think we should really just drop
-j
as short for json, it is not common anywhere and usually means jobs (threads), like in makefile
makes sense, we introduced -j
for tests jobs already and dropped it from json
Motivation
Related: https://github.com/foundry-rs/foundry/issues/8794
Adds a global
--json
flag on theShell
levelSolution
Ideally we would have a
FormatChoice
similar toColorChoice
but to avoid breaking changes the current approach is preferred.Whilst JSON output is currently not supported everywhere this makes it easier to support it going forward. A future PR aims to correct the flag compatibility for all arguments making support / non-support explicit to the user.