Converted version art to multi-line f-strings

Former-commit-id: ccb4039e0c3abd40beafec79f61228183a6e07a3
Former-commit-id: 8456a21b05bd5be2889320eaf1909344a7c84ce2
This commit is contained in:
2023-04-25 12:38:06 -04:00
parent 9d41523c32
commit e35f9246ac
+13 -14
View File
@@ -336,21 +336,20 @@ def print_info():
if arguments[0] in ('version', '-v'):
_blank = '\u001b[38;5;7;48;5;8m/\u001b[38;5;15;48;5;15m' + 54*' ' + '\u001b[38;5;7;48;5;8m/\u001b[0m'
_border = '\u001b[38;5;7;48;5;8m' + 28*'<>' + '\u001b[0m\n'
print('\nsshyp is a simple, self-hosted, sftp-synchronized\npassword manager for unix(-like) systems\n')
print(16*' ' + '..' + 7*' ' + '\u001b[38;5;9m♥♥ ♥♥\u001b[0m' + 7*' ' + '..')
print(9*' ' + ".''.''/()\\" + 5*' ' + '\u001b[38;5;13m♥♥♥♥♥♥♥\u001b[0m' + 5*' ' + "/()\\''.''.")
print(8*' ' + '*' + 7*' ' + ':' + 8*' ' + '\u001b[38;5;9m♥♥♥♥♥\u001b[0m' + 8*' ' + ':' + 7*' ' + '*')
print(9*' ' + "`..'..'" + 10*' ' + '\u001b[38;5;13m♥♥♥\u001b[0m' + 10*' ' + "`..'..'")
print(9*' ' + '//' + 3*' ' + '\\\\' + 11*' ' + '\u001b[38;5;9m♥\u001b[0m' + 11*' ' + '//' + 3*' ' + '\\\\')
print(f"""\nsshyp is a simple, self-hosted, sftp-synchronized\npassword manager for unix(-like) systems\n
{16*' '}..{7*' '}\u001b[38;5;9m♥♥ ♥♥\u001b[0m{7*' '}..
{9*' '}.''.''/()\\{5*' '}\u001b[38;5;13m♥♥♥♥♥♥♥\u001b[0m{5*' '}/()\\''.''.
{8*' '}*{7*' '}:{8*' '}\u001b[38;5;9m♥♥♥♥♥\u001b[0m{8*' '}:{7*' '}*
{9*' '}`..'..'{10*' '}\u001b[38;5;13m♥♥♥\u001b[0m{10*' '}`..'..'
{9*' '}//{3*' '}\\\\{11*' '}\u001b[38;5;9m♥\u001b[0m{11*' '}//{3*' '}\\\\""")
print(_border + _blank)
print('\u001b[38;5;7;48;5;8m/\u001b[38;5;15;48;5;15m' + 3*' ' + '\u001b[38;5;15;48;5;8msshyp copyright (c) 2021-2023 '
'randall winkhart\u001b[38;5;15;48;5;15m' + 3*' ' + '\u001b[38;5;7;48;5;8m/\u001b[0m\n' + _blank)
print('\u001b[38;5;7;48;5;8m/\u001b[38;5;15;48;5;15m' + 20*' ' + '\u001b[38;5;15;48;5;8mversion 1.4.1'
'\u001b[38;5;15;48;5;15m' + 21*' ' + '\u001b[38;5;7;48;5;8m/\u001b[0m')
print('\u001b[38;5;7;48;5;8m/\u001b[38;5;15;48;5;15m' + 9*' ' + '\u001b[38;5;15;48;5;8mthe argumentative '
'agronomist update\u001b[38;5;15;48;5;15m' + 10*' ' + '\u001b[38;5;7;48;5;8m/\u001b[0m')
print(_blank + '\n' + _border)
print('see https://github.com/rwinkhart/sshyp for more information\n')
print(f"\u001b[38;5;7;48;5;8m/\u001b[38;5;15;48;5;15m{3*' '}\u001b[38;5;15;48;5;8msshyp copyright (c) "
f"2021-2023 randall winkhart\u001b[38;5;15;48;5;15m{3*' '}\u001b[38;5;7;48;5;8m/\u001b[0m\n{_blank}")
print(f"\u001b[38;5;7;48;5;8m/\u001b[38;5;15;48;5;15m{20*' '}\u001b[38;5;15;48;5;8mversion 1.4.1"
f"\u001b[38;5;15;48;5;15m{21*' '}\u001b[38;5;7;48;5;8m/\u001b[0m")
print(f"\u001b[38;5;7;48;5;8m/\u001b[38;5;15;48;5;15m{9*' '}\u001b[38;5;15;48;5;8mthe argumentative "
f"agronomist update\u001b[38;5;15;48;5;15m{10*' '}\u001b[38;5;7;48;5;8m/\u001b[0m")
print(f"{_blank}\n{_border}\nsee https://github.com/rwinkhart/sshyp for more information\n")
elif arguments[0] == 'license':
print('\nThis program is free software: you can redistribute it and/or modify it under the terms\nof version 3 '
'(only) of the GNU General Public License as published by the Free Software Foundation.\n\nThis program '