-
Notifications
You must be signed in to change notification settings - Fork 15.3k
[Dexter] Normalise the "tools directory" into a list of tools #128544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,32 @@ | |
| # See https://llvm.org/LICENSE.txt for license information. | ||
| # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
|
||
| from dex.tools.Main import Context, get_tool_names, get_tools_directory, main, tool_main | ||
| from dex.tools.Main import Context, main, tool_main | ||
| from dex.tools.TestToolBase import TestToolBase | ||
| from dex.tools.ToolBase import ToolBase | ||
|
|
||
| def get_tool_names(): | ||
| """Returns a list of expected DExTer Tools""" | ||
| return ["help", "list-debuggers", "no-tool-", "run-debugger-internal-", "test", "view"] | ||
|
|
||
| def get_tools(): | ||
| """Returns a dictionary of expected DExTer Tools""" | ||
| return _the_tools | ||
|
|
||
|
|
||
| from .help import Tool as help_tool | ||
| from .list_debuggers import Tool as list_debuggers_tool | ||
| from .no_tool_ import Tool as no_tool_tool | ||
| from .run_debugger_internal_ import Tool as run_debugger_internal_tool | ||
| from .test import Tool as test_tool | ||
| from .view import Tool as view_tool | ||
|
|
||
| _the_tools = { | ||
| "help" : help_tool, | ||
| "list-debuggers" : list_debuggers_tool, | ||
| "no_tool_" : no_tool_tool, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: Note this is currently out of sync with the get_tool_names spelling. Perhaps |
||
| "run-debugger-internal-" : run_debugger_internal_tool, | ||
| "test" : test_tool, | ||
| "view" : view_tool | ||
| } | ||
|
|
||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd have thought
list-debuggersisn't a valid variable name, I'm confused how this works?