1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-09-20 08:58:55 +02:00

Adding confirmation message to 'arc todo' with information about the task created

Summary: 'arc todo' now logs a message with the task title and URI when run.

Test Plan: Run 'arc todo test' and see that it logs a message with the form 'Created task <task number>: '<task title' at <task URI>

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D3016
This commit is contained in:
Izzy Fraimow 2012-07-19 15:12:12 -07:00
parent b28efb8f88
commit 1a111dc86c

View file

@ -90,9 +90,15 @@ EOTEXT
$args['ccPHIDs'] = $phids;
}
$conduit->callMethodSynchronous(
$result = $conduit->callMethodSynchronous(
'maniphest.createtask',
$args);
echo phutil_console_format(
"Created task T%s: '<fg:green>**%s**</fg>' at <fg:blue>**%s**</fg>\n",
$result['id'],
$result['title'],
$result['uri']);
}
}