use of com.google.startupos.tools.reviewer.local_server.service.Protos.CreateDiffRequest in project startup-os by google.
the class DiffCommand method run.
@Override
public boolean run(String[] args) {
Flags.parseCurrentPackage(args);
Diff diff = (diffNumber == -1) ? createDiff() : updateDiff(diffNumber);
CreateDiffRequest request = CreateDiffRequest.newBuilder().setDiff(diff).build();
// TODO: Check if we changed diff, update only if changed. Write to output if no change.
// TODO: Rename createDiff to createOrUpdateDiff
codeReviewBlockingStub.createDiff(request);
return true;
}
Aggregations