mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 14:52:40 +01:00
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
This commit is contained in:
parent
72447f649f
commit
6849e1f98a
1 changed files with 8 additions and 0 deletions
|
@ -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']));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue