Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15431986
D21308.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
693 B
Referenced Files
None
Subscribers
None
D21308.diff
View Options
diff --git a/src/ref/ArcanistDisplayRef.php b/src/ref/ArcanistDisplayRef.php
--- a/src/ref/ArcanistDisplayRef.php
+++ b/src/ref/ArcanistDisplayRef.php
@@ -7,6 +7,7 @@
private $ref;
private $uri;
+ private $lines = array();
public function setRef(ArcanistRef $ref) {
$this->ref = $ref;
@@ -26,6 +27,11 @@
return $this->uri;
}
+ public function appendLine($line) {
+ $this->lines[] = $line;
+ return $this;
+ }
+
public function newTerminalString() {
$ref = $this->getRef();
@@ -83,6 +89,10 @@
$uri);
}
+ foreach ($this->lines as $line) {
+ $output[] = tsprintf(" %s\n", $line);
+ }
+
return $output;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 25, 3:42 PM (5 d, 17 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7383566
Default Alt Text
D21308.diff (693 B)
Attached To
Mode
D21308: Support appending arbitrary lines to DisplayRef output
Attached
Detach File
Event Timeline
Log In to Comment