Exemplo n.º 1
0
def remove_repo_selection(target):  # pylint: disable=unused-argument
    """
    Select an available repository to remove
    """
    os.chdir(target)
    repo, repodir = pick_repo()
    remove_repo_for(repo, repodir)
Exemplo n.º 2
0
 def handler():
     reponame = context.taskjson["reponame"]
     set_multi_repo(reponame, [])
     repository_map = get_json_value("repository_map", {})
     if reponame in repository_map:
         reposave = repository_map[reponame]
         remove_repo_for(reponame, reposave, confirm=False)
     context.controller.add(
         {"name": "prompt_quit", "interactive": True, "priority": 10}
     )
Exemplo n.º 3
0
def task_cleanup(obj, eng):  # pylint: disable=unused-argument
    """
    Submits the typo
    """
    key = "repository_map"
    repository_map = get_json_value(key, {})
    count = len(repository_map)
    if count < 1:
        print(f"Unexpected number of repostories - {count}")
        return
    reponame, reposave = next(iter(repository_map.items()))
    remove_repo_for(reponame, reposave, confirm=False)