feat: printing utils
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from typing import Optional
|
||||
import getpass
|
||||
import time
|
||||
import colorama
|
||||
|
||||
|
||||
def choice(default: str, options: str, msg: str) -> str:
|
||||
@@ -42,5 +43,8 @@ def password(msg: str = ""):
|
||||
return pw
|
||||
else:
|
||||
time.sleep(1)
|
||||
print("Error: Password cannot be empty")
|
||||
print(
|
||||
colorama.Fore.RED + "Error:",
|
||||
colorama.Style.RESET_ALL + "Password cannot be empty",
|
||||
)
|
||||
return password(msg)
|
||||
|
||||
Reference in New Issue
Block a user