From 49df43c7ab5649566bfede1b9f5c79666b9fb7ae Mon Sep 17 00:00:00 2001 From: SantaSpeen Date: Sat, 26 Mar 2022 01:14:20 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=B4=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=BD=D0=B5=D0=B9=D0=BC=D0=B8=D0=BD=D0=B3;=20?= =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20=D0=BA=D0=BE=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D1=82=D0=B0=D1=80=D0=B8=D0=B8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 671e44b..7ad2983 100644 --- a/main.py +++ b/main.py @@ -71,6 +71,7 @@ class GitSwitch: self.github_repos = self.gh_user.get_repos() def get_github_repo(self, repo_info) -> Union[Repo, None]: + """ Получаем репозиторий с GitHub """ login = self.get_login(repo_info) name = repo_info.name path = os.path.join(self.clone_folder, login, name) @@ -88,9 +89,11 @@ class GitSwitch: pass def push_into_gitflic(self, repo, url) -> bool: - return False + """ Пушим репозиторий на GitFlic """ + pass - def clone(self): + def run(self): + """ Запуск основной части """ for repo_info in self.github_repos: github_repo = self.get_github_repo(repo_info) if not github_repo: continue @@ -111,7 +114,7 @@ class GitSwitch: log.info("Stopped by the user.") exit(0) - self.clone() + self.run() # Инициализируем наши аргументы