read_config()
This is liable to change in the future.
Returns a configuration value of.buckconfig
or --config
flag. For example, read_config('foo', 'bar', 'baz')
returns bazz
if Buck is invoked with --config foo.bar=bazz
flag.Arguments
section
(defaults toNone
) the name of the .buckconfig section with the desired value.field
(defaults toNone
) the name of the .buckconfig field with the desired value.defaultValue
(defaults toNone
) the value to return if the desired value is not set in the .buckconfig.