MCPcopy Create free account
hub / github.com/ddnet/ddnet / export_commands

Function export_commands

scripts/export_settings_commands_table.py:130–138  ·  view source on GitHub ↗
(parsed_commands)

Source from the content-addressed store, hash-verified

128
129
130def export_commands(parsed_commands):
131 output = ['<div style="overflow-x: auto;"><table class="settingscommands">']
132 output.append(" <tr><th>Command</th><th>Arguments</th><th>Description</th></tr>")
133
134 for command in parsed_commands:
135 output.append(f" <tr><td>{html.escape(command['name'])}</td><td>{html.escape(command['arguments'])}</td><td>{html.escape(command['description'])}</td></tr>")
136
137 output.append("</table></div>")
138 return "\n".join(output)
139
140
141def export_settings(parsed_settings):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected