From 1a111dc86cb70c73b2d74ee23308c09cb3c7a45b Mon Sep 17 00:00:00 2001 From: Izzy Fraimow Date: Thu, 19 Jul 2012 15:12:12 -0700 Subject: [PATCH] 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 : ' Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3016 --- src/workflow/ArcanistTodoWorkflow.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/workflow/ArcanistTodoWorkflow.php b/src/workflow/ArcanistTodoWorkflow.php index a600c373..6ce8bd2a 100644 --- a/src/workflow/ArcanistTodoWorkflow.php +++ b/src/workflow/ArcanistTodoWorkflow.php @@ -90,9 +90,15 @@ EOTEXT $args['ccPHIDs'] = $phids; } - $conduit->callMethodSynchronous( + $result = $conduit->callMethodSynchronous( 'maniphest.createtask', $args); + + echo phutil_console_format( + "Created task T%s: '**%s**' at **%s**\n", + $result['id'], + $result['title'], + $result['uri']); } }