sercret token must be at each

This commit is contained in:
Dmitry Afanasyev 2022-03-09 16:42:55 +03:00
parent 00520550ba
commit 2410429e03
3 changed files with 11 additions and 10 deletions

View File

@ -33,12 +33,12 @@ python3 github_mirror.py [-h] [-g GROUP] (-u URLS [URLS ...] | -f FILE) -t TOKEN
## Examples:
python3 github_mirror -u "https://github.com/s3rius/FastAPI-template.git" -g 2059
python3 github_mirror -u "https://github.com/s3rius/FastAPI-template.git" -g 2059 -t "git-QwertY1245kde"
python3 github_mirror -u "https://github.com/s3rius/FastAPI-template.git" "https://github.com/sqlalchemy/sqlalchemy.git"
python3 github_mirror -u "https://github.com/s3rius/FastAPI-template.git" "https://github.com/sqlalchemy/sqlalchemy.git" -t "git-QwertY1245kde"
python3 github_mirror -f github_mirrors.txt -g 59563
python3 github_mirror -f github_mirrors.txt -g 59563 -t "git-QwertY1245kde"
python3 github_mirror -f github_mirrors.txt -u "https://github.com/s3rius/FastAPI-template.git"
python3 github_mirror -f github_mirrors.txt -u "https://github.com/s3rius/FastAPI-template.git" -t "git-QwertY1245kde"
python3 github_mirror.py --gitlab "https://gitlab.company.ru" -t "git-QwertY1245kde" -g 2059 -u "https://github.com/s3rius/FastAPI-template.git"

View File

@ -5,15 +5,15 @@ GITLAB_URL = 'https://git.do.x5.ru'
USAGE = '''github_mirror [-h] [-g GROUP] (-u URLS [URLS ...] | -f FILE) -t TOKEN
--------------------------------------------------
python3 github_mirror -u "https://github.com/s3rius/FastAPI-template.git" -g 2059
python3 github_mirror -u "https://github.com/s3rius/FastAPI-template.git" -g 2059 -t "git-QwertY1245kde"
python3 github_mirror -u "https://github.com/s3rius/FastAPI-template.git" "https://github.com/sqlalchemy/sqlalchemy.git"
python3 github_mirror -u "https://github.com/s3rius/FastAPI-template.git" "https://github.com/sqlalchemy/sqlalchemy.git" -t "git-QwertY1245kde"
python3 github_mirror -f github_mirrors.txt -g 59563
python3 github_mirror -f github_mirrors.txt -g 59563 -t "git-QwertY1245kde"
python3 github_mirror -f github_mirrors.txt -u "https://github.com/s3rius/FastAPI-template.git"
python3 github_mirror -f github_mirrors.txt -u "https://github.com/s3rius/FastAPI-template.git" -t "git-QwertY1245kde"
python3 gitlab_mirror.py --gitlab "https://gitlab.company.ru" -t "git-QwertY1245kde" -g 2059
python3 github_mirror.py --gitlab "https://gitlab.company.ru" -t "git-QwertY1245kde" -g 2059
--------------------------------------------------

View File

@ -43,9 +43,10 @@ def main():
threads_ready_statistic(threads) # add threads ready status to log output
else:
logger.info('You must provide urls to mirror')
logger.info('You must provide at least one github url for mirror')
sys.exit(1)
if __name__ == '__main__':
main()