mirror of
https://github.com/rohitg00/skillkit.git
synced 2026-11-18 18:04:26 +00:00
fix: respect --no-federated flag to disable GitHub search
This commit is contained in:
@@ -177,7 +177,9 @@ export class FindCommand extends Command {
|
||||
s.start("Searching skills.sh + external registries...");
|
||||
const fedSearch = new FederatedSearch();
|
||||
fedSearch.addRegistry(new SkillsShRegistry());
|
||||
fedSearch.addRegistry(new GitHubSkillRegistry());
|
||||
if (this.federated) {
|
||||
fedSearch.addRegistry(new GitHubSkillRegistry());
|
||||
}
|
||||
try {
|
||||
const fedResult = await fedSearch.search(searchTerm, {
|
||||
limit: parseInt(this.limit, 10) || 10,
|
||||
|
||||
Reference in New Issue
Block a user