commit 3fb78dcafba655185e5fd150c423305331f3d671 Author: Arctic Date: Fri Mar 7 03:57:33 2025 -0600 first commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/__pycache__/add_host.cpython-312.pyc b/__pycache__/add_host.cpython-312.pyc new file mode 100644 index 0000000..ed61bb7 Binary files /dev/null and b/__pycache__/add_host.cpython-312.pyc differ diff --git a/add_host.py b/add_host.py new file mode 100644 index 0000000..434541c --- /dev/null +++ b/add_host.py @@ -0,0 +1,108 @@ +import os +import subprocess + +class Colors: + GREEN = "\033[0;32m" + RED = "\033[0;31m" + YELLOW = "\033[1;33m" + CYAN = "\033[0;36m" + BOLD = "\033[1m" + RESET = "\033[0m" + +def print_error(message): + print(f"{Colors.RED}{Colors.BOLD}[✖] {Colors.RESET}{message}") + +def print_warning(message): + print(f"{Colors.YELLOW}{Colors.BOLD}[⚠] {Colors.RESET}{message}") + +def print_info(message): + print(f"{Colors.GREEN}{Colors.BOLD}[✔] {Colors.RESET}{message}") + +def add_host(CONF_DIR): + """ + Interactive prompt to create a new SSH host in ~/.ssh/conf/