MCPcopy
hub / github.com/HunxByts/GhostTrack / call_option

Function call_option

GhostTR.py:219–227  ·  view source on GitHub ↗
(opt)

Source from the content-addressed store, hash-verified

217
218
219def call_option(opt):
220 if not is_in_options(opt):
221 raise ValueError('Option not found')
222 for option in options:
223 if option['num'] == opt:
224 if 'func' in option:
225 option['func']()
226 else:
227 print('No function detected')
228
229
230def execute_option(opt):

Callers 1

execute_optionFunction · 0.85

Calls 1

is_in_optionsFunction · 0.85

Tested by

no test coverage detected