File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,16 +70,12 @@ def get_commands(
7070 include_plugin_commands : bool = True ,
7171 include_skill_commands : bool = True ,
7272) -> tuple [PortingModule , ...]:
73- commands = list (PORTED_COMMANDS )
74- if not include_plugin_commands :
75- commands = [
76- module for module in commands if "plugin" not in module .source_hint .lower ()
77- ]
78- if not include_skill_commands :
79- commands = [
80- module for module in commands if "skills" not in module .source_hint .lower ()
81- ]
82- return tuple (commands )
73+ return tuple (
74+ module
75+ for module in PORTED_COMMANDS
76+ if (include_plugin_commands or "plugin" not in module .source_hint .lower ())
77+ and (include_skill_commands or "skills" not in module .source_hint .lower ())
78+ )
8379
8480
8581def find_commands (query : str , limit : int = 20 ) -> list [PortingModule ]:
You can’t perform that action at this time.
0 commit comments