def get_ssid() -> str:
    """
    Get the SSID which the computer is currently connected to
    """
    platform = utils.get_platform()

    if platform == constants.MAC:
        airport = pathlib.Path(constants.AIRPORT_PATH)

        if not airport.is_file():
            print_error(f"Can't find 'airport' command at {airport}")
        
        ssid = utils.run_command(f"{airport} -I | awk '/ SSID/ {{print substr($0, index($0, $2))}}'")

    elif platform == constants.LINUX:
        if which("nmcli") is None:
            print_error("Network Manager is required to run this program on Linux.")

        ssid = utils.run_command("nmcli -t -f active,ssid dev wifi | egrep '^yes:' | sed 's/^yes://'")

    elif platform == constants.WINDOWS:
        ssid = utils.run_command("netsh wlan show interfaces | findstr SSID")

        if ssid == "":
            print_error("SSID was not found")

        ssid = re.findall(r"[^B]SSID\s+:\s(.*)", ssid)[0]

    return ssid

    Get the SSID which the computer is currently connected to
    
wifi_password/wifi_password.py