MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / list_channels

Function list_channels

python/examples/version_switcher.py:92–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90
91
92def list_channels():
93 done = False
94 print("\tSelect channel:\n")
95 while not done:
96 channel_list = list(UpdateChannel)
97 for index, item in enumerate(channel_list):
98 print("\t%d)\t%s" % (index + 1, item.name))
99 print("\t%d)\t%s" % (len(channel_list) + 1, "Main Menu"))
100 selection = input('Choice: ')
101 if selection.isdigit():
102 selection = int(selection)
103 else:
104 selection = 0
105 if (selection <= 0 or selection > len(channel_list) + 1):
106 print("%s is an invalid choice." % selection)
107 else:
108 done = True
109 if (selection != len(channel_list) + 1):
110 load_channel(channel_list[selection - 1].name)
111
112
113def toggle_updates():

Callers 1

mainFunction · 0.85

Calls 1

load_channelFunction · 0.85

Tested by

no test coverage detected