From f760b5420c105df86891d1dfafcd60fd6febbc37 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Thu, 26 May 2022 05:32:46 -0400 Subject: [PATCH] Reduced visual complexity of help screens --- bin/sshyp | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/bin/sshyp b/bin/sshyp index 4c37689..4cc764d 100755 --- a/bin/sshyp +++ b/bin/sshyp @@ -218,11 +218,11 @@ def tweak(): # runs configuration wizard def print_info(): # prints help text based on argument if argument == 'help' or argument == '--help' or argument == '-h': - print('\n\u001b[38;5;0;48;5;15msshyp Copyright (C) 2021-2022 Randall Winkhart\u001b[0m\n') - print("This is free software, and you are welcome to redistribute it under certain conditions;\nthis program " - "comes with ABSOLUTELY NO WARRANTY;\ntype `sshyp license' for details.") - print('\n\u001b[38;5;15;48;5;238mUSAGE: sshyp [OPTION [FLAG] []] | [/]\u001b[0m\n') - print('\u001b[38;5;0;48;5;15mOptions:\u001b[0m') + print('\n\u001b[1msshyp copyright (c) 2021-2022 randall winkhart\u001b[0m\n') + print("this is free software, and you are welcome to redistribute it under certain conditions;\nthis program " + "comes with absolutely no warranty;\ntype `sshyp license' for details") + print('\n\u001b[1musage:\u001b[0m sshyp [option [flag] []] | [/]\n') + print('\u001b[1moptions:\u001b[0m') print('help/--help/-h bring up this menu') print('version/-v display sshyp version info') print('tweak configure sshyp') @@ -232,25 +232,25 @@ def print_info(): # prints help text based on argument print('copy copy details of an entry to your clipboard') print('shear/-rm delete an existing entry') print('sync/-s manually sync the entry directory via sshync\n') - print('\u001b[38;5;0;48;5;15mFlags:\u001b[0m') - print('\u001b[38;5;15;48;5;238madd:\u001b[0m') + print('\u001b[1mflags:\u001b[0m') + print('add:') print(' password/-p add a password entry') print(' note/-n add a note entry') print(' folder/-f add a new folder for entries') - print('\u001b[38;5;15;48;5;238medit:\u001b[0m') + print('edit:') print(' rename/relocate/-r rename or relocate an entry') print(' username/-u change the username of an entry') print(' password/-p change the password of an entry') print(' note/-n change the note attached to an entry') print(' url/-l change the url attached to an entry') - print('\u001b[38;5;15;48;5;238mcopy:\u001b[0m') + print('copy:') print(' username/-u copy the username of an entry to your clipboard') print(' password/-p copy the password of an entry to your clipboard') - print(' url/-l copy the URL of an entry to your clipboard') + print(' url/-l copy the url of an entry to your clipboard') print(' note/-n copy the note of an entry to your clipboard') - print('\u001b[38;5;15;48;5;238mgen:\u001b[0m') + print('gen:') print(' update/-u generate a password for an existing entry\n') - print("\u001b[38;5;0;48;5;15mTip:\u001b[0m You can quickly read an entry with 'sshyp /'!") + print("\u001b[1mtip:\u001b[0m you can quickly read an entry with 'sshyp /'") elif argument == 'version' or argument == '-v': print('\nsshyp is a simple, self-hosted, sftp-synchronized password manager\nfor unix(-like) systems (currently' ' haiku/linux/termux)\n\nsshyp is a viable alternative to (and compatible with) pass/password-store\n') @@ -281,28 +281,28 @@ def print_info(): # prints help text based on argument ' PARTICULAR PURPOSE.\nSee the GNU General Public License for more details.' '\n\nhttps://opensource.org/licenses/GPL-3.0\n') elif argument == 'add': - print('\n\u001b[38;5;15;48;5;238mUSAGE: sshyp add {FLAG {}}\u001b[0m\n') - print('\u001b[38;5;0;48;5;15mFlags:\u001b[0m') - print('\u001b[38;5;15;48;5;238madd:\u001b[0m') + print('\n\u001b[1musage:\u001b[0m sshyp add [flag []]\u001b[0m\n') + print('\u001b[1mflags:\u001b[0m') + print('add:') print(' password/-p add a password entry') print(' note/-n add a note entry') print(' folder/-f add a new folder for entries\n') elif argument == 'edit': - print('\n\u001b[38;5;15;48;5;238mUSAGE: sshyp edit {FLAG {}}\u001b[0m\n') - print('\u001b[38;5;0;48;5;15mFlags:\u001b[0m') - print('\u001b[38;5;15;48;5;238medit:\u001b[0m') + print('\n\u001b[1musage:\u001b[0m sshyp edit [flag []]\u001b[0m\n') + print('\u001b[1mflags:\u001b[0m') + print('edit:') print(' rename/relocate/-r rename or relocate an entry') print(' username/-u change the username of an entry') print(' password/-p change the password of an entry') print(' url/-l change the url attached to an entry') print(' note/-n change the note attached to an entry\n') elif argument == 'copy': - print('\n\u001b[38;5;15;48;5;238mUSAGE: sshyp copy {FLAG {}}\u001b[0m\n') - print('\u001b[38;5;0;48;5;15mFlags:\u001b[0m') - print('\u001b[38;5;15;48;5;238mcopy:\u001b[0m') + print('\n\u001b[1musage:\u001b[0m sshyp copy [flag []]\u001b[0m\n') + print('\u001b[1mflags:\u001b[0m') + print('copy:') print(' username/-u copy the username of an entry to your clipboard') print(' password/-p copy the password of an entry to your clipboard') - print(' url/-l copy the URL of an entry to your clipboard') + print(' url/-l copy the url of an entry to your clipboard') print(' note/-n copy the note of an entry to your clipboard\n')