in src/main/java/com/google/devtools/build/remote/client/RemoteClient.java [194:221]
private void printActionV1(com.google.devtools.remoteexecution.v1test.Action action, int limit)
throws IOException {
// Note: Command V2 is backward compatible to V1. It adds fields but does not remove them, so we
// can use it here.
Command command = getCommand(toV2(action.getCommandDigest()));
System.out.printf(
"Command [digest: %s]:\n", digestUtil.toString(toV2(action.getCommandDigest())));
printCommand(command);
Tree tree = cache.getTree(toV2(action.getInputRootDigest()));
System.out.printf(
"\nInput files [total: %d, root Directory digest: %s]:\n",
getNumFiles(tree), digestUtil.toString(toV2(action.getInputRootDigest())));
listTree(Paths.get(""), tree, limit);
System.out.println("\nOutput files:");
printList(action.getOutputFilesList(), limit);
System.out.println("\nOutput directories:");
printList(action.getOutputDirectoriesList(), limit);
System.out.println("\nPlatform:");
if (action.hasPlatform() && !action.getPlatform().getPropertiesList().isEmpty()) {
System.out.println(action.getPlatform().toString());
} else {
System.out.println("(none)");
}
}