mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-30 14:02:06 +00:00
change prompt display
This commit is contained in:
@@ -152,8 +152,7 @@ class AccountController(BaseController):
|
||||
configs_diff = get_diff(configs=json.loads(response.content))
|
||||
if configs_diff:
|
||||
i = console.input(
|
||||
"\nDo you want to overwrite your local configurations "
|
||||
"with the above? (y/n): "
|
||||
"\nDo you want to load the configurations above? (y/n): "
|
||||
)
|
||||
if i.lower() in ["y", "yes"]:
|
||||
Local.apply_configs(configs=configs_diff)
|
||||
|
||||
@@ -16,7 +16,9 @@ from openbb_terminal.session.session_model import (
|
||||
def display_welcome_message():
|
||||
"""Display welcome message"""
|
||||
with open(PACKAGE_DIRECTORY / "session" / "banner.txt") as f:
|
||||
console.print(f"[menu]{f.read()}[/menu]")
|
||||
console.print(f"[menu]{f.read()}[/menu]\n")
|
||||
console.print("Register : [cmds]https://my.openbb.co/register[/cmds]")
|
||||
console.print("Ask support : [cmds]https://openbb.co/support[/cmds]")
|
||||
|
||||
|
||||
def get_user_input() -> Tuple[str, str, bool]:
|
||||
@@ -27,7 +29,9 @@ def get_user_input() -> Tuple[str, str, bool]:
|
||||
Tuple[str, str, bool]
|
||||
The user email, password and save login option.
|
||||
"""
|
||||
console.print("[info]\nPlease enter your credentials:[/info]")
|
||||
console.print(
|
||||
"[info]\nPlease enter your credentials or press enter for guest mode:[/info]"
|
||||
)
|
||||
|
||||
s: PromptSession = PromptSession()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user