forked from DRMTalks/devine
Center ASCII banner without using U+2800
This commit is contained in:
parent
dc55f6ffeb
commit
3cfc679294
|
@ -1,11 +1,12 @@
|
||||||
import atexit
|
import atexit
|
||||||
import logging
|
import logging
|
||||||
import textwrap
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import click
|
import click
|
||||||
import urllib3
|
import urllib3
|
||||||
|
from rich.console import Group
|
||||||
|
from rich.text import Text
|
||||||
from urllib3.exceptions import InsecureRequestWarning
|
from urllib3.exceptions import InsecureRequestWarning
|
||||||
from rich import traceback
|
from rich import traceback
|
||||||
from rich.padding import Padding
|
from rich.padding import Padding
|
||||||
|
@ -56,21 +57,22 @@ def main(version: bool, debug: bool, log_path: Path) -> None:
|
||||||
|
|
||||||
console.print(
|
console.print(
|
||||||
Padding(
|
Padding(
|
||||||
textwrap.dedent(
|
Group(
|
||||||
f"""
|
Text(
|
||||||
[ascii.art]
|
r" / __ \/ ____/ | / / _/ | / / ____/" + "\n"
|
||||||
⠀⠀⠀/ __ \/ ____/ | / / _/ | / / ____/
|
r" / / / / __/ | | / // // |/ / __/ " + "\n"
|
||||||
⠀⠀/ / / / __/ | | / // // |/ / __/⠀⠀⠀
|
r" / /_/ / /___ | |/ // // /| / /___ " + "\n"
|
||||||
⠀/ /_/ / /___ | |/ // // /| / /___⠀⠀⠀
|
r"/_____/_____/ |___/___/_/ |_/_____/ ⠀",
|
||||||
/_____/_____/ |___/___/_/ |_/_____/⠀⠀⠀
|
style="ascii.art"
|
||||||
[/]
|
),
|
||||||
v[repr.number]{__version__}[/] Copyright © 2019-{datetime.now().year} rlaphoenix
|
"",
|
||||||
[bright_blue]https://github.com/devine-dl/devine[/]
|
f"v[repr.number]{__version__}[/] Copyright © 2019-{datetime.now().year} rlaphoenix",
|
||||||
"""
|
f"[bright_blue]https://github.com/devine-dl/devine[/]"
|
||||||
).strip(),
|
),
|
||||||
(0, 21, 1, 20)
|
(1, 21, 1, 20),
|
||||||
|
expand=True
|
||||||
),
|
),
|
||||||
justify="center"
|
justify="left"
|
||||||
)
|
)
|
||||||
|
|
||||||
if version:
|
if version:
|
||||||
|
|
Loading…
Reference in New Issue