(context: Context)
Configures Bento to NOT run in CI.
Configures Bento to NOT run in CI.
Configures Bento to NOT run in CI .
def uninstall_ci(context: Context) -> None:
    """
    Configures Bento to NOT run in CI.
    """
    repo = bento.git.repo(context.base_path)
    if repo is None:
        raise NotAGitRepoException()

    if not context.gh_actions_file_path.exists():
        echo_warning(
            "Not uninstalling CI config: Bento is not configured for CI on this project."
        )
        sys.exit(1)

    _delete_gh_actions_config(
        path=context.gh_actions_file_path, root_path=context.base_path
    )

    echo_success("Uninstalled Bento from CI.")
    echo_next_step("To re-enable CI integration", "bento enable ci")
def uninstall_ci ( context : Context ) -> None : repo = bento . git . repo ( context . base_path ) if repo is None : raise NotAGitRepoException ( ) if not context . gh_actions_file_path . exists ( ) : echo_warning ( "Not uninstalling CI config: Bento is not configured for CI on this project." ) sys . exit ( 1 ) _delete_gh_actions_config ( path = context . gh_actions_file_path , root_path = context . base_path ) echo_success ( "Uninstalled Bento from CI." ) echo_next_step ( "To re-enable CI integration" , "bento enable ci" )