Add a BUCK_COLOR env var, fixing SuperConsole in buckd.

Summary:
buckd can't tell whether the caller is talking to a tty or not, so we need to
tell it in order to enable SuperConsole output. Add BUCK_COLOR, which
(extending the existing color config) takes values of true/always, false/never,
or auto. Copy the VerbosityParser hack to get this option early in startup.
Modify the buck starter script to pass this value to the nailgun server.

Thoughts on renaming the "color" config to "fancy" or something?

Test Plan: buckd output is now Super by default. Confirm that "never" overrides the default.
8 files changed
tree: 3aef4dd8360801b5ca0ce628617f02d5a309ce0d
  1. .idea/
  2. bin/
  3. config/
  4. docs/
  5. lib/
  6. plugin/
  7. pmd/
  8. scripts/
  9. src/
  10. test/
  11. testdata/
  12. third-party/
  13. .buckconfig
  14. .classpath
  15. .gitignore
  16. .project
  17. .travis.yml
  18. buck.iml
  19. build.xml
  20. DEFS
  21. LICENSE
  22. README.md
README.md

Buck

Buck is an Android build tool. To see what Buck can do for you, check out the documentation at http://facebook.github.io/buck/.

Build Status

Installation

To build Buck, run the following:

git clone git@github.com:facebook/buck.git
cd buck
ant
./bin/buck --help

License

Apache License 2.0