Move all base command support into rbtools.commands.base.

Review Request #13021 — Created May 6, 2023 and submitted — Latest diff uploaded

Information

RBTools
release-5.x

Reviewers

Modules in rbtools.commands.base now provide all the base command
classes, option processing, output handling, and errors. This cleans up
the rbtools.commands module and gives us room for further expansion.

This work was planned for RBTools 4, but had to slip.

With the exception of the, well, exception classes, all classes use
housekeeping.ClassMovedMixin to point to the new class. We don't
bother subclassing the old exceptions because catching a subclass
wouldn't do any good. We can't easily deprecate those, for the
time-being, we'll leave them in, directly assigning from the new
modules.

The moved classes have not been modernized. Aside from imports and
version change information in the docstrings, no changes have been made
to any of the moved code.

Unit tests pass, except for one that's sensitive to generated output
and is seeing a warning. This will be addressed in a follow-up change.

Diff Revision 2 (Latest)

orig
1
2

Commits

First Last Summary ID Author
Mov all base command support into rbtools.commands.base.
Modules in `rbtools.commands.base` now provide all the base command classes, option processing, output handling, and errors. This cleans up the `rbtools.commands` module and gives us room for further expansion. This work was planned for RBTools 4, but had to slip. With the exception of the, well, exception classes, all classes use `housekeeping.ClassMovedMixin` to point to the new class. We don't bother subclassing the old exceptions because catching a subclass wouldn't do any good. We can't easily deprecate those, for the time-being, we'll leave them in, directly assigning from the new modules. The moved classes have not been modernized. Aside from imports and version change information in the docstrings, no changes have been made to any of the moved code.
785ea25c142f3c1578024415911506aff05f4b70 Christian Hammond
docs/rbtools/api/coderef/index.rst
rbtools/deprecation.py
rbtools/commands/__init__.py
rbtools/commands/base/__init__.py
rbtools/commands/base/commands.py
rbtools/commands/base/errors.py
rbtools/commands/base/options.py
rbtools/commands/base/output.py
Loading...