src/Actions/Open.py
def open_page_or_file(phrase):
    """
    Handles all routes based on the 'Open' first_word.

    Currently only supports opening custom e-mail link.

    Allows for custom commands to launch e-mail in the Settings file.
    Link to E-mail provider also in Settings file

    :param phrase: str
    :return: None
    """
    default_email_commands = ['mail', 'message']

    if phrase in OPEN_SETTINGS.get('Email', default_email_commands):
        speak(f'Opening Mail')
        open_mail_link()
    else:
        speak(f'I don\'t know how to open {phrase}')

    Handles all routes based on the 'Open' first_word.

    Currently only supports opening custom e-mail link.

    Allows for custom commands to launch e-mail in the Settings file.
    Link to E-mail provider also in Settings file

    :param phrase: str
    :return: None
    
Handles all routes based on the 'Open' first_word.
Currently only supports opening custom e-mail link.

Allows for custom commands to launch e-mail in the Settings file.
Link to E-mail provider also in Settings file
Handles all routes based on the ' Open ' first_word . Currently only supports opening custom e - mail link . Allows for custom commands to launch e - mail in the Settings file . Link to E - mail provider also in Settings file
def open_page_or_file(phrase):
    default_email_commands = ['mail', 'message']
    if phrase in OPEN_SETTINGS.get('Email', default_email_commands):
        speak(f'Opening Mail')
        open_mail_link()
    else:
        speak(f'I don\'t know how to open {phrase}')
def open_page_or_file ( phrase ) : default_email_commands = [ 'mail' , 'message' ] if phrase in OPEN_SETTINGS . get ( 'Email' , default_email_commands ) : speak ( f'Opening Mail' ) open_mail_link ( ) else : speak ( f'I don\'t know how to open {phrase}' )
Handles all routes based on the 'Open' first_word.
Handles all routes based on the ' Open ' first_word .
"""
    Handles all routes based on the 'Open' first_word.

    Currently only supports opening custom e-mail link.

    Allows for custom commands to launch e-mail in the Settings file.
    Link to E-mail provider also in Settings file

    :param phrase: str
    :return: None
    """
None
phrase
None