Skip to content

Commit

Permalink
adding breaklines at end of outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
João Paulo Carvalho committed Apr 4, 2021
1 parent eb48250 commit bcdb915
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pipconf/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Module informations
__version__ = "0.2.1"
__version__ = "0.2.2"
__module__ = "pipconf"
__description__ = "Python's PIP configuration manager"
__index__ = "https://github.com/jjpaulo2/pipconf"
Expand Down
11 changes: 6 additions & 5 deletions pipconf/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def print_user_configurations() -> NoReturn:
current_start = "\033[93m*"
current_end = "\033[0m"

print(f"{current_start} {filename} ({filepath}) {current_end}")
print(f"{current_start} {filename} ({filepath}) {current_end}\n")


def print_current_configuration() -> NoReturn:
Expand All @@ -58,10 +58,10 @@ def print_current_configuration() -> NoReturn:

print()
if filepath:
print(f" The current pip configuration file is \033[93m{filepath}\033[0m")
print(f" The current pip configuration file is \033[93m{filepath}\033[0m\n")

else:
print(" No configuration file defined.")
print(" No configuration file defined.\n")


def set_user_configuration(filename: str) -> NoReturn:
Expand All @@ -76,6 +76,7 @@ def set_user_configuration(filename: str) -> NoReturn:
print()
print(" Current pip configuration successfully updated.")
print(f" The active config file is \033[93m{new_config_filepath}\033[0m")
print()


def set_local_configuration() -> NoReturn:
Expand All @@ -94,8 +95,8 @@ def set_local_configuration() -> NoReturn:
new_config_filepath = current_directory + "/" + expected_local_config_filename

switch.set_current_configuration(new_config_filepath)
print(f" The active config file is \033[93m{new_config_filepath}\033[0m")
print(f" The active config file is \033[93m{new_config_filepath}\033[0m\n")

else:
print(" Not found \033[91mpip.conf\033[0m file in this folder.")
print(" Not found \033[91mpip.conf\033[0m file in this folder.\n")

0 comments on commit bcdb915

Please sign in to comment.