From f4bbcbc31c90ee421e87dbf229bd5f07ea1b476c Mon Sep 17 00:00:00 2001 From: DidierRLopes Date: Wed, 14 Sep 2022 17:17:01 +0300 Subject: [PATCH] suggest data sources to use for a command (#2518) Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com> --- openbb_terminal/sources_controller.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openbb_terminal/sources_controller.py b/openbb_terminal/sources_controller.py index d5ab4c4a194..909e494ed2d 100644 --- a/openbb_terminal/sources_controller.py +++ b/openbb_terminal/sources_controller.py @@ -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):