diff --git a/src/ref/ArcanistDisplayRef.php b/src/ref/ArcanistDisplayRef.php index c4e7a5d5..631b65b4 100644 --- a/src/ref/ArcanistDisplayRef.php +++ b/src/ref/ArcanistDisplayRef.php @@ -7,6 +7,7 @@ final class ArcanistDisplayRef private $ref; private $uri; + private $lines = array(); public function setRef(ArcanistRef $ref) { $this->ref = $ref; @@ -26,6 +27,11 @@ final class ArcanistDisplayRef return $this->uri; } + public function appendLine($line) { + $this->lines[] = $line; + return $this; + } + public function newTerminalString() { $ref = $this->getRef(); @@ -83,6 +89,10 @@ final class ArcanistDisplayRef $uri); } + foreach ($this->lines as $line) { + $output[] = tsprintf(" %s\n", $line); + } + return $output; }