mirror of
https://github.com/Balshgit/github_mirror.git
synced 2025-09-10 23:20:41 +03:00
sercret token must be at each
This commit is contained in:
parent
00520550ba
commit
2410429e03
@ -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"
|
@ -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
|
||||
|
||||
|
||||
--------------------------------------------------
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user