ints used as flags (bitwise): so C
authorTudor Bosman <tudorb@fb.com>
Sun, 4 Nov 2012 03:03:23 +0000 (20:03 -0700)
committerJordan DeLong <jdelong@fb.com>
Sun, 16 Dec 2012 22:43:05 +0000 (14:43 -0800)
commit96bd762fc047066ccad4f00dba4de95abadfae98
treeaab7411e5cf2b9b3b7038dbf0c82f4e771b68964
parentdcbf91499be96d53467edd3e27485a1fba467291
ints used as flags (bitwise): so C

Summary:
Changed communicate() flags from int to a class.
Made Options and CommunicateFlags composable with |
Simplified API so you don't have to type Subprocess::Options().stdout(Subprocess::PIPE)

Test Plan: subprocess_test

Reviewed By: chip@fb.com

FB internal diff: D620186
folly/Subprocess.cpp
folly/Subprocess.h
folly/test/SubprocessTest.cpp