Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistWorkflow.php
Show First 20 Lines • Show All 1,355 Lines • ▼ Show 20 Lines | |||||
* | * | ||||
* @param string Message to write to stderr. | * @param string Message to write to stderr. | ||||
* @return void | * @return void | ||||
*/ | */ | ||||
final protected function writeStatusMessage($msg) { | final protected function writeStatusMessage($msg) { | ||||
fwrite(STDERR, $msg); | fwrite(STDERR, $msg); | ||||
} | } | ||||
final protected function writeInfo($title, $message) { | final public function writeInfo($title, $message) { | ||||
$this->writeStatusMessage( | $this->writeStatusMessage( | ||||
phutil_console_format( | phutil_console_format( | ||||
"<bg:blue>** %s **</bg> %s\n", | "<bg:blue>** %s **</bg> %s\n", | ||||
$title, | $title, | ||||
$message)); | $message)); | ||||
} | } | ||||
final protected function writeWarn($title, $message) { | final public function writeWarn($title, $message) { | ||||
$this->writeStatusMessage( | $this->writeStatusMessage( | ||||
phutil_console_format( | phutil_console_format( | ||||
"<bg:yellow>** %s **</bg> %s\n", | "<bg:yellow>** %s **</bg> %s\n", | ||||
$title, | $title, | ||||
$message)); | $message)); | ||||
} | } | ||||
final protected function writeOkay($title, $message) { | final public function writeOkay($title, $message) { | ||||
$this->writeStatusMessage( | $this->writeStatusMessage( | ||||
phutil_console_format( | phutil_console_format( | ||||
"<bg:green>** %s **</bg> %s\n", | "<bg:green>** %s **</bg> %s\n", | ||||
$title, | $title, | ||||
$message)); | $message)); | ||||
} | } | ||||
final protected function isHistoryImmutable() { | final protected function isHistoryImmutable() { | ||||
▲ Show 20 Lines • Show All 664 Lines • Show Last 20 Lines |