mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
suggest data sources to use for a command (#2518)
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
This commit is contained in:
@@ -69,6 +69,9 @@ class SourcesController(BaseController):
|
||||
choices: dict = {c: {} for c in self.controller_choices}
|
||||
choices["get"] = {c: None for c in list(self.commands_with_sources.keys())}
|
||||
choices["set"] = {c: None for c in list(self.commands_with_sources.keys())}
|
||||
for cmd in list(self.commands_with_sources.keys()):
|
||||
choices["set"][cmd] = {c: None for c in self.commands_with_sources[cmd]}
|
||||
|
||||
self.completer = NestedCompleter.from_nested_dict(choices)
|
||||
|
||||
def print_help(self):
|
||||
|
||||
Reference in New Issue
Block a user