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)
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)