Page MenuHomePhabricator

Consistently use `phutil_console_confirm()`.
ClosedPublic

Authored by stefren on Jul 6 2017, 9:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 31, 10:59 AM
Unknown Object (File)
Wed, May 28, 11:27 AM
Unknown Object (File)
Tue, May 27, 7:13 AM
Unknown Object (File)
May 6 2025, 5:49 PM
Unknown Object (File)
May 5 2025, 4:18 PM
Unknown Object (File)
Apr 30 2025, 5:12 AM
Unknown Object (File)
Apr 29 2025, 6:42 PM
Unknown Object (File)
Apr 28 2025, 6:39 AM
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.)