def main():
    bitbucket_username = vault.get('bitbucket.org', 'username')
    github_username = vault.get('github.com', 'username')
    github_api_token = vault.get('github.com', github_username)
    
    for repo in bitbucket.repos(bitbucket_username):
        if (0 != backup(repo, bitbucket_username, github_username, github_api_token)):
            break
Пример #2
0
def main():
    for repo in bitbucket.repos(bitbucket_username):
        backup(repo)