1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-22 06:42:41 +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:
epriestley 2014-08-04 12:03:12 -07:00
parent 72447f649f
commit 6849e1f98a

View file

@ -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']));
}
}
}