Delete command/utils/build_chain.py
Browse files- command/utils/build_chain.py +0 -19
command/utils/build_chain.py
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
from ..basic.documentation import DocumentationHandler
|
2 |
-
from ..utils.read_yaml import load_commands_from_yaml
|
3 |
-
|
4 |
-
|
5 |
-
def build_command_chain():
|
6 |
-
commands = load_commands_from_yaml(file_path="../commands.yaml")
|
7 |
-
handlers = None
|
8 |
-
for cmd_data in commands:
|
9 |
-
command_dict = cmd_data.get('command_dict', {})
|
10 |
-
commands_list = [cmd.lower() for cmds in command_dict.values() for cmd in cmds]
|
11 |
-
description = cmd_data.get('description', '')
|
12 |
-
|
13 |
-
if description.lower() == "download text file with all commands":
|
14 |
-
handler = DocumentationHandler(commands_list, handlers)
|
15 |
-
else:
|
16 |
-
handler = None
|
17 |
-
|
18 |
-
handlers = handler
|
19 |
-
return handlers
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|