MCPcopy Create free account
hub / github.com/daniel2005d/mapXplore / complete_search

Method complete_search

console/modules/queryCommand.py:54–65  ·  view source on GitHub ↗
(self, text, line, begidx, endidx)

Source from the content-addressed store, hash-verified

52 SqlMapSetting().set_value(arg.section,arg.value)
53
54 def complete_search(self, text, line, begidx, endidx):
55 completions = []
56 hashes = list(Hashes.get_available_algorithms())
57 for hash in hashes:
58 if hash.startswith(text):
59 completions.append(hash)
60
61 for item in Settings.filter_options:
62 if item.startswith(text):
63 completions.append(item)
64
65 return completions
66
67
68 def do_clean(self, arg):

Callers

nothing calls this directly

Calls 2

appendMethod · 0.45

Tested by

no test coverage detected