mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-26 00:32:41 +01:00
Add a "%?" ("hint") conversion to "tsprintf()"
Summary: Ref T13546. Future "arc land" workflows use this element to provide "hint" or "next step" suggestions to make error resolution easier. Test Plan: Ran future "arc land" workflows, saw tips like "use --revision to do such-and-such" or "add these files to .gitignore". Maniphest Tasks: T13546 Differential Revision: https://secure.phabricator.com/D21309
This commit is contained in:
parent
0e82474007
commit
7c80a9006d
1 changed files with 5 additions and 0 deletions
|
@ -48,6 +48,11 @@ function xsprintf_terminal($userdata, &$pattern, &$pos, &$value, &$length) {
|
||||||
$value = PhutilTerminalString::escapeStringValue($value, false);
|
$value = PhutilTerminalString::escapeStringValue($value, false);
|
||||||
$type = 's';
|
$type = 's';
|
||||||
break;
|
break;
|
||||||
|
case '?':
|
||||||
|
$value = tsprintf('<bg:green>** ? **</bg> %s', $value);
|
||||||
|
$value = PhutilTerminalString::escapeStringValue($value, false);
|
||||||
|
$type = 's';
|
||||||
|
break;
|
||||||
case 'd':
|
case 'd':
|
||||||
$type = 'd';
|
$type = 'd';
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue