mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 10:12:38 +02:00
in cli-mode banner should be printed instead
Was calling color spillover to the adjacent text if the banner was logged instead of printed. Since this is the CLI version, it could make sense to have this printed.
This commit is contained in:
parent
67d91be81a
commit
f2f2e6f143
1 changed files with 15 additions and 15 deletions
|
@ -227,8 +227,8 @@ class GlobalCommon(object):
|
||||||
╰──────────────────────────╯
|
╰──────────────────────────╯
|
||||||
"""
|
"""
|
||||||
|
|
||||||
log.info(Back.BLACK + Fore.YELLOW + Style.DIM + "╭──────────────────────────╮")
|
print(Back.BLACK + Fore.YELLOW + Style.DIM + "╭──────────────────────────╮")
|
||||||
log.info(
|
print(
|
||||||
Back.BLACK
|
Back.BLACK
|
||||||
+ Fore.YELLOW
|
+ Fore.YELLOW
|
||||||
+ Style.DIM
|
+ Style.DIM
|
||||||
|
@ -240,7 +240,7 @@ class GlobalCommon(object):
|
||||||
+ Style.DIM
|
+ Style.DIM
|
||||||
+ "│"
|
+ "│"
|
||||||
)
|
)
|
||||||
log.info(
|
print(
|
||||||
Back.BLACK
|
Back.BLACK
|
||||||
+ Fore.YELLOW
|
+ Fore.YELLOW
|
||||||
+ Style.DIM
|
+ Style.DIM
|
||||||
|
@ -252,7 +252,7 @@ class GlobalCommon(object):
|
||||||
+ Style.DIM
|
+ Style.DIM
|
||||||
+ "│"
|
+ "│"
|
||||||
)
|
)
|
||||||
log.info(
|
print(
|
||||||
Back.BLACK
|
Back.BLACK
|
||||||
+ Fore.YELLOW
|
+ Fore.YELLOW
|
||||||
+ Style.DIM
|
+ Style.DIM
|
||||||
|
@ -264,7 +264,7 @@ class GlobalCommon(object):
|
||||||
+ Style.DIM
|
+ Style.DIM
|
||||||
+ "│"
|
+ "│"
|
||||||
)
|
)
|
||||||
log.info(
|
print(
|
||||||
Back.BLACK
|
Back.BLACK
|
||||||
+ Fore.YELLOW
|
+ Fore.YELLOW
|
||||||
+ Style.DIM
|
+ Style.DIM
|
||||||
|
@ -276,7 +276,7 @@ class GlobalCommon(object):
|
||||||
+ Style.DIM
|
+ Style.DIM
|
||||||
+ "│"
|
+ "│"
|
||||||
)
|
)
|
||||||
log.info(
|
print(
|
||||||
Back.BLACK
|
Back.BLACK
|
||||||
+ Fore.YELLOW
|
+ Fore.YELLOW
|
||||||
+ Style.DIM
|
+ Style.DIM
|
||||||
|
@ -288,7 +288,7 @@ class GlobalCommon(object):
|
||||||
+ Style.DIM
|
+ Style.DIM
|
||||||
+ "│"
|
+ "│"
|
||||||
)
|
)
|
||||||
log.info(
|
print(
|
||||||
Back.BLACK
|
Back.BLACK
|
||||||
+ Fore.YELLOW
|
+ Fore.YELLOW
|
||||||
+ Style.DIM
|
+ Style.DIM
|
||||||
|
@ -300,7 +300,7 @@ class GlobalCommon(object):
|
||||||
+ Style.DIM
|
+ Style.DIM
|
||||||
+ "│"
|
+ "│"
|
||||||
)
|
)
|
||||||
log.info(
|
print(
|
||||||
Back.BLACK
|
Back.BLACK
|
||||||
+ Fore.YELLOW
|
+ Fore.YELLOW
|
||||||
+ Style.DIM
|
+ Style.DIM
|
||||||
|
@ -312,7 +312,7 @@ class GlobalCommon(object):
|
||||||
+ Style.DIM
|
+ Style.DIM
|
||||||
+ "│"
|
+ "│"
|
||||||
)
|
)
|
||||||
log.info(
|
print(
|
||||||
Back.BLACK
|
Back.BLACK
|
||||||
+ Fore.YELLOW
|
+ Fore.YELLOW
|
||||||
+ Style.DIM
|
+ Style.DIM
|
||||||
|
@ -324,7 +324,7 @@ class GlobalCommon(object):
|
||||||
+ Style.DIM
|
+ Style.DIM
|
||||||
+ "│"
|
+ "│"
|
||||||
)
|
)
|
||||||
log.info(
|
print(
|
||||||
Back.BLACK
|
Back.BLACK
|
||||||
+ Fore.YELLOW
|
+ Fore.YELLOW
|
||||||
+ Style.DIM
|
+ Style.DIM
|
||||||
|
@ -336,7 +336,7 @@ class GlobalCommon(object):
|
||||||
+ Style.DIM
|
+ Style.DIM
|
||||||
+ "│"
|
+ "│"
|
||||||
)
|
)
|
||||||
log.info(
|
print(
|
||||||
Back.BLACK
|
Back.BLACK
|
||||||
+ Fore.YELLOW
|
+ Fore.YELLOW
|
||||||
+ Style.DIM
|
+ Style.DIM
|
||||||
|
@ -348,12 +348,12 @@ class GlobalCommon(object):
|
||||||
+ Style.DIM
|
+ Style.DIM
|
||||||
+ "│"
|
+ "│"
|
||||||
)
|
)
|
||||||
log.info(Back.BLACK + Fore.YELLOW + Style.DIM + "│ │")
|
print(Back.BLACK + Fore.YELLOW + Style.DIM + "│ │")
|
||||||
left_spaces = (15 - len(self.version) - 1) // 2
|
left_spaces = (15 - len(self.version) - 1) // 2
|
||||||
right_spaces = left_spaces
|
right_spaces = left_spaces
|
||||||
if left_spaces + len(self.version) + 1 + right_spaces < 15:
|
if left_spaces + len(self.version) + 1 + right_spaces < 15:
|
||||||
right_spaces += 1
|
right_spaces += 1
|
||||||
log.info(
|
print(
|
||||||
Back.BLACK
|
Back.BLACK
|
||||||
+ Fore.YELLOW
|
+ Fore.YELLOW
|
||||||
+ Style.DIM
|
+ Style.DIM
|
||||||
|
@ -367,7 +367,7 @@ class GlobalCommon(object):
|
||||||
+ Style.DIM
|
+ Style.DIM
|
||||||
+ "│"
|
+ "│"
|
||||||
)
|
)
|
||||||
log.info(
|
print(
|
||||||
Back.BLACK
|
Back.BLACK
|
||||||
+ Fore.YELLOW
|
+ Fore.YELLOW
|
||||||
+ Style.DIM
|
+ Style.DIM
|
||||||
|
@ -380,7 +380,7 @@ class GlobalCommon(object):
|
||||||
+ Style.DIM
|
+ Style.DIM
|
||||||
+ "│"
|
+ "│"
|
||||||
)
|
)
|
||||||
log.info(Back.BLACK + Fore.YELLOW + Style.DIM + "╰──────────────────────────╯")
|
print(Back.BLACK + Fore.YELLOW + Style.DIM + "╰──────────────────────────╯")
|
||||||
|
|
||||||
def get_container_runtime(self):
|
def get_container_runtime(self):
|
||||||
if platform.system() == "Linux":
|
if platform.system() == "Linux":
|
||||||
|
|
Loading…
Reference in a new issue