-
- Downloads
Bug 1696251: Allow mach commands as stand-alone functions and adapt existing...
Bug 1696251: Allow mach commands as stand-alone functions and adapt existing commands. r=mhentges,webdriver-reviewers,perftest-reviewers,sparky,whimboo This removes the `@CommandProvider` decorator and the need to implement mach commands inside subclasses of `MachCommandBase`, and moves all existing commands out from classes to module level functions. Differential Revision: https://phabricator.services.mozilla.com/D121512
Showing
- build/valgrind/mach_commands.py 209 additions, 213 deletionsbuild/valgrind/mach_commands.py
- devtools/shared/css/generated/mach_commands.py 73 additions, 75 deletionsdevtools/shared/css/generated/mach_commands.py
- dom/bindings/mach_commands.py 45 additions, 50 deletionsdom/bindings/mach_commands.py
- js/src/devtools/rootAnalysis/mach_commands.py 320 additions, 312 deletionsjs/src/devtools/rootAnalysis/mach_commands.py
- layout/tools/reftest/mach_commands.py 70 additions, 73 deletionslayout/tools/reftest/mach_commands.py
- layout/tools/reftest/mach_test_package_commands.py 10 additions, 14 deletionslayout/tools/reftest/mach_test_package_commands.py
- mobile/android/mach_commands.py 477 additions, 488 deletionsmobile/android/mach_commands.py
- python/mach/docs/commands.rst 14 additions, 34 deletionspython/mach/docs/commands.rst
- python/mach/docs/settings.rst 7 additions, 13 deletionspython/mach/docs/settings.rst
- python/mach/docs/telemetry.rst 4 additions, 6 deletionspython/mach/docs/telemetry.rst
- python/mach/mach/commands/commandinfo.py 390 additions, 392 deletionspython/mach/mach/commands/commandinfo.py
- python/mach/mach/commands/settings.py 44 additions, 51 deletionspython/mach/mach/commands/settings.py
- python/mach/mach/decorators.py 40 additions, 81 deletionspython/mach/mach/decorators.py
- python/mach/mach/registrar.py 1 addition, 1 deletionpython/mach/mach/registrar.py
- python/mach/mach/test/providers/basic.py 8 additions, 11 deletionspython/mach/mach/test/providers/basic.py
- python/mach/mach/test/providers/commands.py 11 additions, 18 deletionspython/mach/mach/test/providers/commands.py
- python/mach/mach/test/providers/conditions.py 37 additions, 32 deletionspython/mach/mach/test/providers/conditions.py
- python/mach/mach/test/providers/conditions_invalid.py 3 additions, 7 deletionspython/mach/mach/test/providers/conditions_invalid.py
- python/mach/mach/test/providers/throw.py 9 additions, 12 deletionspython/mach/mach/test/providers/throw.py
- python/mach/mach/test/test_conditions.py 5 additions, 5 deletionspython/mach/mach/test/test_conditions.py
Loading
Please register or sign in to comment