feat: Add View Version Info Command by evolvomind · Pull Request #8073 · mitmproxy/mitmproxy
Navigation Menu
- Notifications You must be signed in to change notification settings
- Fork 4.5k
Conversation
Description
Add a version information screen to the mitmproxy console UI that displays the current version and git commit details.
Features:
- New "Version Info" view accessible via
Ykeybinding or:console.view.versioninfocommand - Displays:
- Full version string (e.g.,
13.0.0.dev (+36, commit c4f81b7)) - Base version number
- Git commit hash (short and full)
- Commit date
- Last tag
- Current branch
- Full version string (e.g.,
- Gracefully handles cases where git information is not available
Files changed:
mitmproxy/tools/console/versioninfo.py- New version info viewmitmproxy/tools/console/window.py- Register versioninfo windowmitmproxy/tools/console/consoleaddons.py- Addconsole.view.versioninfocommandmitmproxy/tools/console/defaultkeys.py- AddYkeybindingmitmproxy/tools/console/quickhelp.py- Add quick help support
Tests added:
test/mitmproxy/tools/console/test_versioninfo.py- Unit tests (100% coverage)test/mitmproxy/tools/console/test_consoleaddons_versioninfo.py- Command integration teststest/mitmproxy/tools/console/test_integration.py- End-to-end integration tests
Resolves: #5013
Checklist
- I have updated tests where applicable.
- I have added an entry to the CHANGELOG.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters