[fx] introduce fx-error and fx-warn with colors
fx-error prints ERROR: and it's arguemnts to stderr, with the prefix colored red if stderr is a terminal. fx-warn prints WARNING: and it's arguemnts to stderr, with the prefix colored yellow if stderr is a terminal. test -t is known to be imperfect, however, it should be sufficiently portable to be usable for now without otherwise going off the deep end. This should help to make errors and warnings stand out in output for a large group of users. Change-Id: Ib7fdee3ca677bfd27e4a3a64d39ecc9a812bfeab
Showing
- scripts/devshell/build-push 4 additions, 4 deletionsscripts/devshell/build-push
- scripts/devshell/fuzz 1 addition, 1 deletionscripts/devshell/fuzz
- scripts/devshell/go 4 additions, 4 deletionsscripts/devshell/go
- scripts/devshell/lib/vars.sh 26 additions, 8 deletionsscripts/devshell/lib/vars.sh
- scripts/devshell/ota 2 additions, 2 deletionsscripts/devshell/ota
- scripts/devshell/run-test 3 additions, 3 deletionsscripts/devshell/run-test
- scripts/devshell/set 11 additions, 11 deletionsscripts/devshell/set
- scripts/devshell/set-petal 1 addition, 1 deletionscripts/devshell/set-petal
- scripts/devshell/update 2 additions, 2 deletionsscripts/devshell/update
- scripts/devshell/update-rustc-third-party 4 additions, 3 deletionsscripts/devshell/update-rustc-third-party
- scripts/devshell/verify-build-packages 2 additions, 2 deletionsscripts/devshell/verify-build-packages
Loading
Please register or sign in to comment