@@ -170,41 +170,56 @@ def config_init() -> None:
170170@gitp_config_check
171171def config_repos () -> Union [res .ResponseFailure , res .ResponseSuccess ]:
172172 """Configure current working `gitp` repositories."""
173- new_repos = p .new_repos (CONFIG_MANAGER .config .github_selected_repos )
173+ new_repos = p .InquirerPrompter .new_repos (
174+ CONFIG_MANAGER .config .github_selected_repos
175+ )
174176 if not new_repos :
175177 return res .ResponseSuccess ()
176178 github_manager = ghm .GithubManager (CONFIG_MANAGER .config )
177179 repo_names = github_manager .get_repo_names ()
178- selected_repos = p .select_repos (repo_names )
180+ selected_repos = p .InquirerPrompter . select_repos (repo_names )
179181 return cr .ConfigReposUseCase (CONFIG_MANAGER ).execute (selected_repos )
180182
181183
182184@create .command ("issues" )
183185def create_issues () -> None :
184186 """Batch creation of issues on GitHub."""
185187 manager = ghm .GithubManager (CONFIG_MANAGER .config )
186- ghci .GhCreateIssueUseCase (manager ).execute ()
188+ issue = p .InquirerPrompter .create_issues (
189+ CONFIG_MANAGER .config .github_selected_repos
190+ )
191+ ghci .GhCreateIssueUseCase (manager ).execute (issue )
187192
188193
189194@create .command ("prs" )
190195def create_prs () -> None :
191196 """Batch creation of pull requests on GitHub."""
192197 manager = ghm .GithubManager (CONFIG_MANAGER .config )
193- ghcp .GhCreatePrUseCase (manager ).execute ()
198+ pr = p .InquirerPrompter .create_pull_requests (
199+ CONFIG_MANAGER .config .github_selected_repos
200+ )
201+ ghcp .GhCreatePrUseCase (manager ).execute (pr )
194202
195203
196204@merge .command ("prs" )
197205def merge_prs () -> None :
198206 """Batch merge of pull requests on GitHub."""
199207 manager = ghm .GithubManager (CONFIG_MANAGER .config )
200- ghmp .GhMergePrUseCase (manager ).execute ()
208+ pr_merge = p .InquirerPrompter .merge_pull_requests (
209+ manager .github_username ,
210+ manager .config .github_selected_repos ,
211+ )
212+ ghmp .GhMergePrUseCase (manager ).execute (pr_merge )
201213
202214
203215@delete .command ("branches" )
204216def delete_branches () -> None :
205217 """Batch deletion of branches on GitHub."""
206218 manager = ghm .GithubManager (CONFIG_MANAGER .config )
207- ghdb .GhDeleteBranchUseCase (manager ).execute ()
219+ branch = p .InquirerPrompter .delete_branches (
220+ CONFIG_MANAGER .config .github_selected_repos
221+ )
222+ ghdb .GhDeleteBranchUseCase (manager ).execute (branch )
208223
209224
210225main .add_command (configure )
0 commit comments