Skip to content

Commit

Permalink
Merge pull request #182 from radon-project/shell-update
Browse files Browse the repository at this point in the history
Shell experience update
  • Loading branch information
Almas-Ali authored Oct 29, 2024
2 parents ccaba40 + 34e9789 commit 9c67809
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions radon.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def start_text() -> None:
f"\033[1;34mRadon {base_core.__version__} on {platform.machine()} {platform.system()} ({sys.platform})\033[0m"
)
print(f"\033[1;33mDocumentation:\033[0m {documentation_link}")
print("\033[1;32mType \033[1;31mhelp(obj), license(), credits()\033[1;32m for more info\033[0m")
print("\033[1;32mType \033[1;31mexit()\033[1;32m to quit the shell.\033[0m")
print("\033[1;32mType \033[1;31mhelp(obj), copyright(), credits(), license()\033[1;32m for more info\033[0m")
print("\033[1;32mType \033[1;31mexit\033[1;32m to quit the shell.\033[0m")


def shell() -> None:
Expand All @@ -47,6 +47,9 @@ def shell() -> None:
if text.strip() == "":
continue

if text.strip() == "exit":
break

if text.strip()[-1] == "{":
brace_count += 1
while True:
Expand Down

0 comments on commit 9c67809

Please sign in to comment.