def are_you_sure(name: str, cfg: Optional[Config]=None) -> bool:
    env_name = (cfg.env.value if cfg else 'global')
    while True:
        typed = input(f'''Confirm operation: "{name}" in env {env_name}
Type the name of the environment to proceed: ''')
        if (typed == env_name):
            return True
def are_you_sure(name: str, cfg: Optional[Config]=None) -> bool:
    env_name = (cfg.env.value if cfg else 'global')
    while True:
        typed = input(f'Confirm operation: "{name}" in env {env_name}
Type the name of the environment to proceed: ')
        if (typed == env_name):
            return True