Skip to content

Commit

Permalink
Allow stocks/load --file from anywhere (#4410)
Browse files Browse the repository at this point in the history
* allow load file from anywhere

* ruff

---------

Co-authored-by: James Maslek <[email protected]>
  • Loading branch information
montezdesousa and jmaslek committed Apr 12, 2023
1 parent e3cf280 commit 0e4005e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openbb_terminal/stocks/stocks_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ def __init__(self, queue: Optional[List[str]] = None):

if session and get_current_user().preferences.USE_PROMPT_TOOLKIT:
choices: dict = self.choices_default
choices["load"] = {
"--file": {c: None for c in self.USER_IMPORT_FILES},
"-f": "--file",
}
self.completer = NestedCompleter.from_nested_dict(choices)

def print_help(self):
Expand Down

0 comments on commit 0e4005e

Please sign in to comment.