Slackbot
07/21/2023, 3:51 PMVampire
07/21/2023, 4:01 PMVampire
07/21/2023, 4:02 PMSebastian Schuberth
07/21/2023, 4:04 PMephemient
07/21/2023, 4:20 PMSebastian Schuberth
07/21/2023, 4:22 PMrun
task? If so, why does it need to get piped in the first place?ephemient
07/21/2023, 4:22 PMephemient
07/21/2023, 4:23 PMSebastian Schuberth
07/21/2023, 4:24 PMVampire
07/21/2023, 4:25 PM--no-daemon
), it would probably be piped, because you still run one process from another.Vampire
07/21/2023, 4:26 PMgrep
have an argument with which you can tell it to "always" color, "never" color, or "auto-detect" color.Sebastian Schuberth
07/21/2023, 4:26 PMProcessBuilder
(without redirection configured) to spawn another process, that should work, or?Vampire
07/21/2023, 4:26 PMVampire
07/21/2023, 4:27 PMWell, naively, if I could just useMost probably not(without redirection configured) to spawn another process, that should work, orProcessBuilder
Sebastian Schuberth
07/21/2023, 4:27 PMVampire
07/21/2023, 4:28 PMgrep
or piping it to less
or running it through Gradle DaemonSebastian Schuberth
07/21/2023, 4:29 PMephemient
07/21/2023, 4:29 PMVampire
07/21/2023, 4:29 PMephemient
07/21/2023, 4:30 PMVampire
07/21/2023, 4:30 PMUnless there's a reliable way to tell whether an app is being run by Gradle / the daemon... and only then force color.That's exactly what I said
Vampire
07/21/2023, 4:30 PMrun
task with an argument like --color=always
for grep
, then you have exaclty thatVampire
07/21/2023, 4:31 PMgrep
or less
or whatever and the end-user might still preserve color even if piped.Sebastian Schuberth
07/21/2023, 4:31 PM> Unless there's a reliable way to tell whether an app is being run by Gradle / the daemon... and only then force color.
That's exactly what I saidWell, what I thought you were saying is that my clikt app should support
--force-color
and I should specify that manually when I know I'm running via Gradle.Vampire
07/21/2023, 4:32 PMVampire
07/21/2023, 4:32 PMephemient
07/21/2023, 4:33 PMSebastian Schuberth
07/21/2023, 4:33 PMephemient
07/21/2023, 4:34 PMephemient
07/21/2023, 4:34 PMephemient
07/21/2023, 4:36 PMVampire
07/21/2023, 4:36 PMThat would not scale for all clikt users though.Why not? I as user of a tool that uses clickt would hate it as hell if I can not suppress color or enforce color how I need it.
Vampire
07/21/2023, 4:36 PMVampire
07/21/2023, 4:37 PMephemient
07/21/2023, 4:37 PMVampire
07/21/2023, 4:38 PMSebastian Schuberth
07/21/2023, 6:10 PM