diff options
author | 2017-01-31 13:48:24 +0000 | |
---|---|---|
committer | 2017-02-01 08:52:39 +0000 | |
commit | bd10ed1eac9ce2dd42e2638b18edc6afea748909 (patch) | |
tree | 4628d98cce219a61d11aa418b3a2285426e896a3 /.gitattributes | |
parent | 0c08942935c975246cf57a434b997d1614e0c5af (diff) |
Simplify the Spawn interface
Remove getSpawnInfo and asShellCommand, which are never really
overridden in a useful way. asShellCommand moves to the Spawns class,
and getSpawnInfo is only ever called by SpawnAction, and the
implementation moves there.
I'm considering using Spawn as the general lower-level abstraction for both
local and remote execution. It sort of is that already, except it's not
used consistently - we often pass a tuple of (args, env) plus possibly
input and output files through parameter-heavy method call hierarchies
instead of using this existing abstraction.
However, I'm concerned about the amount of baggage it's carrying as well
as the number of implementations for what is supposed to be a simple
interface (or possibly even a simple value class), and this is an attempt
to slim it down a bit.
This should have no visible effects on builds.
--
PiperOrigin-RevId: 146109838
MOS_MIGRATED_REVID=146109838
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions