Fix single plugin update command parameter and enable GitHub integration
This commit is contained in:
1 parent
83be780243
commit
43dafb57da
3 files changed
+15
-7
No files matched your search
@@ -103,8 +103,15 @@ pub async fn lib_search_plugins_in_repositories(
|
||||
tasks.push(task);
|
||||
},
|
||||
RepositorySource::GitHub => {
|
||||
// Placeholder - will cause errors until GitHubCrawler implements Repository
|
||||
eprintln!("GitHub search not fully implemented yet.");
|
||||
let crawler = crawlers::GitHubCrawler::new();
|
||||
let query_owned = query.to_string();
|
||||
let task = async move {
|
||||
match crawler.search(&query_owned).await {
|
||||
Ok(repo_results) => Ok((crawler.get_repository_name(), repo_results)),
|
||||
Err(e) => Err((crawler.get_repository_name(), e.to_string()))
|
||||
}
|
||||
}.boxed(); // Box the future
|
||||
tasks.push(task);
|
||||
},
|
||||
_ => {
|
||||
eprintln!("Repository {:?} not supported for search", repo);
|
||||
|
||||
Reference in new issue
Block a user