Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14390886
D16970.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D16970.diff
View Options
diff --git a/src/applications/config/management/PhabricatorConfigManagementDoneWorkflow.php b/src/applications/config/management/PhabricatorConfigManagementDoneWorkflow.php
--- a/src/applications/config/management/PhabricatorConfigManagementDoneWorkflow.php
+++ b/src/applications/config/management/PhabricatorConfigManagementDoneWorkflow.php
@@ -11,6 +11,13 @@
->setArguments(
array(
array(
+ 'name' => 'force',
+ 'short' => 'f',
+ 'help' => pht(
+ 'Mark activities complete even if there is no outstanding '.
+ 'need to complete them.'),
+ ),
+ array(
'name' => 'activities',
'wildcard' => true,
),
@@ -18,6 +25,8 @@
}
public function execute(PhutilArgumentParser $args) {
+ $is_force = $args->getArg('force');
+
$activities = $args->getArg('activities');
if (!$activities) {
throw new PhutilArgumentUsageException(
@@ -29,11 +38,19 @@
'activityType = %s',
$type);
if (!$activity) {
- throw new PhutilArgumentUsageException(
- pht(
- 'Activity "%s" is not currently marked as required, so there '.
- 'is no need to complete it.',
- $type));
+ if ($is_force) {
+ echo tsprintf(
+ "%s\n",
+ pht(
+ 'Activity "%s" did not need to be marked as complete.',
+ $type));
+ } else {
+ throw new PhutilArgumentUsageException(
+ pht(
+ 'Activity "%s" is not currently marked as required, so there '.
+ 'is no need to complete it.',
+ $type));
+ }
} else {
$activity->delete();
echo tsprintf(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 22, 7:14 PM (8 h, 37 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6919422
Default Alt Text
D16970.diff (1 KB)
Attached To
Mode
D16970: Add a "--force" argument to "bin/config done"
Attached
Detach File
Event Timeline
Log In to Comment