[NinjaBuildCommand] Factor out a helper for computing the command result.
[NinjaBuildCommand] Factor out a helper for computing the command result.
apple/swift-llbuild,apple/swift-llbuild,apple/swift-llbuild,apple/swift-llbuild,apple/swift-llbuild,apple/swift-llbuild,apple/swift-llbuild