def check_tmux_session()

in source/eksfedctl/create_action.py [0:0]


def check_tmux_session():
    msg_head = "Federation creation should be launched inside tmux session"
    msg_command = "run \"tmux\" or \"tmux attach\" to start new session or attach to existing one"

    if "TMUX" not in os.environ:
        raise Exception(f"{msg_head}\n{msg_command}")