From 6849e1f98a5385ff2bfd5879e5ef03e8dde21b1c Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 4 Aug 2014 12:03:12 -0700 Subject: [PATCH] Add a --browse flag to `arc todo` Summary: Ref T5781. Like D10141, but for `arc todo`. Fixes T5787. Test Plan: See T5787. Reviewers: btrahan, csilvers Reviewed By: csilvers Subscribers: epriestley, spicyj Maniphest Tasks: T5781, T5787 Differential Revision: https://secure.phabricator.com/D10142 --- src/workflow/ArcanistTodoWorkflow.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/workflow/ArcanistTodoWorkflow.php b/src/workflow/ArcanistTodoWorkflow.php index 53aae0ed..30550e59 100644 --- a/src/workflow/ArcanistTodoWorkflow.php +++ b/src/workflow/ArcanistTodoWorkflow.php @@ -49,6 +49,9 @@ EOTEXT 'repeat' => true, 'help' => pht('Projects to assign to the task.'), ), + 'browse' => array( + 'help' => pht('After creating the task, open it in a web browser.'), + ), ); } @@ -108,6 +111,11 @@ EOTEXT $result['id'], $result['title'], $result['uri']); + + if ($this->getArgument('browse')) { + $this->openURIsInBrowser(array($result['uri'])); + } + } }