Page MenuHomePhabricator

Consistently use `phutil_console_confirm()`.
ClosedPublic

Authored by stefren on Jul 6 2017, 9:49 PM.
Tags
None
Referenced Files
F18103829: D18185.id43746.diff
Sun, Aug 10, 8:03 AM
F18101494: D18185.id.diff
Sat, Aug 9, 1:37 PM
F18096509: D18185.diff
Fri, Aug 8, 7:22 AM
F18094778: D18185.id.diff
Thu, Aug 7, 10:20 PM
F17961996: D18185.diff
Fri, Aug 1, 10:10 AM
F17941727: D18185.id.diff
Thu, Jul 31, 5:52 AM
Unknown Object (File)
Jun 30 2025, 7:08 AM
Unknown Object (File)
Jun 18 2025, 9:56 PM
Subscribers

Details

Summary

PhutilConsole->confirm() is vestigial as noted in efcd70c, as
PhutilConsole may be deprecated sometime in the future. PhutilConsole
was developed as a tool for T4281 but the feature has been removed
since.

Replace existing occurences of the PhutilConsole->confirm() pattern with
phutil_console_confirm(). There should be no change in functionality
since the two functions are interchangeable.

Test Plan

Manually tested by running bin/arc lint, bin/arc diff --preview, bin/arc land --preview.

Diff Detail

Repository
rARC Arcanist
Branch
up-master (branched from master)
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 17632
Build 23668: arc lint + arc unit

Event Timeline

@stefren should be covered by the #Dropbox corporate CLA.

Thanks! I've added you to Blessed Committers so you should be able to land this directly -- see that project's description for some pointers if you hit issues, or let me know if that doesn't resolve things.

This revision is now accepted and ready to land.Jul 6 2017, 11:11 PM

(I also added you to Community, granting you sweeping janitorial powers.)