Exemplo n.º 1
0
def remove_hooks():
    parser = argparse.ArgumentParser(description='Remove Hooks.')
    parser.add_argument('path', type=str,
                        help='Path. Example: /Users/Francois/buildout/')
    args = parser.parse_args()
    for dirpath in gitFoldersPath(args.path):
        removeGitHooksFolder(dirpath)
Exemplo n.º 2
0
def change_remote():
    parser = argparse.ArgumentParser(description='Change remote.')
    parser.add_argument('path', type=str,
                        help='Path. Example: /Users/Francois/buildout/')
    parser.add_argument('url', type=str,
                        help='Url. Example: http://gitlab.com/repo/bitbucket-migration.yaml')
    args = parser.parse_args()
    for dirpath in gitFoldersPath(args.path):
        changeRemoteFolder(dirpath, args.url)