@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add a "--force" flag to `bin/auth revoke`

Summary: Ref T13043. I'd like to replace the manual credential revocation in the Phacility export workflow with shared code in `bin/auth revoke`, but we need it to run non-interactively. Add a `--force` flag purely to make our lives easier.

Test Plan: Ran `bin/auth revoke --everywhere ...` with and without `--force`. Got prompted without, got total annihilation with.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13043

Differential Revision: https://secure.phabricator.com/D18895

+6 -1
+6 -1
src/applications/auth/management/PhabricatorAuthManagementRevokeWorkflow.php
··· 34 34 'name' => 'everywhere', 35 35 'help' => pht('Revoke from all credential owners.'), 36 36 ), 37 + array( 38 + 'name' => 'force', 39 + 'help' => pht('Revoke credentials without prompting.'), 40 + ), 37 41 )); 38 42 } 39 43 ··· 41 45 $viewer = PhabricatorUser::getOmnipotentUser(); 42 46 43 47 $all_types = PhabricatorAuthRevoker::getAllRevokers(); 48 + $is_force = $args->getArg('force'); 44 49 45 50 $type = $args->getArg('type'); 46 51 $is_everything = $args->getArg('everything'); ··· 97 102 } 98 103 } 99 104 100 - if ($is_everywhere) { 105 + if ($is_everywhere && !$is_force) { 101 106 echo id(new PhutilConsoleBlock()) 102 107 ->addParagraph( 103 108 pht(