Organized functions in sshync.py by use method

This commit is contained in:
2022-12-05 23:21:02 -05:00
parent 56ea8d0cf9
commit a49334482c
2 changed files with 46 additions and 42 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ from subprocess import CalledProcessError, DEVNULL, PIPE, run
from sys import argv, exit as s_exit
# BELOW - utility functions
# UTILITY FUNCTIONS
def entry_list_gen(_directory=expanduser('~/.local/share/sshyp/')): # generates and prints full entry list
from textwrap import fill
@@ -228,8 +228,8 @@ def copy_id_check(_port, _username_ssh, _ip, _client_device_id):
open(expanduser('~/.config/sshyp/ssh-error'), 'w').write('0')
return 0
# BELOW - argument-specific functions
# ARGUMENT-SPECIFIC FUNCTIONS
def tweak(): # runs configuration wizard
from os import symlink