Adhere to CI=true environment variable to hide #curl's progress bar?
github.com/curl/curl/discussio…
Adhere to CI=true environment variable to hide progress bar · curl curl · Discussion #17838
There is a de facto environment variable CI=true that is enabled on CI platforms like GitHub, GitLab and Jenkins. Tools such as pip and yarn listen to this and make their output less chatty. In man...GitHub
tsia
in reply to daniel:// stenberg:// • • •Chris Burgess
in reply to daniel:// stenberg:// • • •well, thanks - I had wondered at the name of that variable, knowing it existed but not why it was named generically. So I learned from this! Thanks for sharing.
+1 for not adding this suggested feature, prefer explicit behaviour
Pavel Valach
in reply to daniel:// stenberg:// • • •Ben Zanin
in reply to daniel:// stenberg:// • • •Adam Havelka
in reply to daniel:// stenberg:// • • •poleguy looking for lost tools
in reply to daniel:// stenberg:// • • •good decision. Using environment variables as a secondary api is always an abuse. It introduced an ambiguity about which takes priority: env or command line flags?
It is terrible for discoverability: I can see the flags that are set, but I would have to inspect every environment variable and then find a list of which ones curl is affected by.
This is the exact reason global variables are frowned upon in any context!
Also generic env names imply multi-tool agreement that is doomed.
Stefan Eissing
in reply to daniel:// stenberg:// • • •daniel:// stenberg://
in reply to Stefan Eissing • • •