From 5648a6efa2c4818f15ce5a33f68e6df7bb7e8556 Mon Sep 17 00:00:00 2001 From: konsthol Date: Wed, 29 Mar 2023 01:00:45 +0300 Subject: [PATCH] fixed some minor stuff, might need some additional work. --- secdep.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/secdep.py b/secdep.py index 657436e..7b4e926 100755 --- a/secdep.py +++ b/secdep.py @@ -273,7 +273,7 @@ def update_env_file(): count = 0 for line in file_entries: count += 1 - print("{}) {}".format(count, line)) + console.print("[bold white]{}) {}[/bold white]".format(count, line)) console.print("Choosing [u]0[/u] will exit the function", style="bold white") console.print("You will be asked to enter the new value [u]until it is valid[/u] or you enter [u]0[/u]", style="bold white") choice = prompt.ask("[bold white]Choose the entry you want to update [/bold white]") @@ -740,7 +740,7 @@ def list_provider_images(provider,images=None): # It also validates the user input and keeps asking for a valid one unless the user enters 0 to exit def choose_from_list(listFromlistFunction,listName): if len(listFromlistFunction) == 0: - print("No items") + console.print("No items", style="bold white") exit(0) if listName == "awsLocation": printFormat = "[bold white]{}) {}\n\n[/bold white][bold cyan]Region name: {}[/bold cyan]\n[bold blue]Country: {}[/bold blue]\n" @@ -1137,7 +1137,7 @@ def create_node(provider, name=None, location=None, size=None, image=None, confi gceNodes = driver.list_nodes() for gceNode in gceNodes: if gceNode.name == name: - cosole.print("A node with that name already exists under this project, please choose [u]another[/u] one", style="bold red") + console.print("A node with that name already exists under this project, please choose [u]another[/u] one", style="bold red") exit(0) existIn = False firewalls = driver.ex_list_firewalls() @@ -1495,7 +1495,7 @@ def ssh(provider, port=None, awsRegion=None): while True: if channel.recv_ready(): output = channel.recv(1024) - print(output.decode()) + console.print(output.decode(), style="bold white") else: time.sleep(0.5) if not(channel.recv_ready()):