Allow third-party packages to register new rbt commands.

Review Request #5046 — Created Dec. 3, 2013 and submitted — Latest diff uploaded

Information

RBTools
master

Reviewers

Allow third-party packages to register new rbt commands.

rbt will now scan for commands that are registered for
the 'rbtools_commands' entrypoint.

Created a simple Python package that registered a new command, and sure enough, it showed up in rbt help, and could be invoked via rbt [command].

I created a third-party commands that tried to override the built-in "post" command, and tested to make sure that only one "post" command was listed with rbt help, and that only the built-in post command could be invoked.

Diff Revision 2

This is not the most recent revision of the diff. The latest diff is revision 3. See what's changed.

orig
1
2
3
rbtools/commands/main.py
Loading...