@voidwire/lore 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.ts +11 -2
- package/package.json +1 -1
package/cli.ts
CHANGED
|
@@ -122,9 +122,18 @@ function handleSearch(args: string[]): void {
|
|
|
122
122
|
|
|
123
123
|
// Handle --sources flag
|
|
124
124
|
if (hasFlag(args, "sources")) {
|
|
125
|
-
const
|
|
125
|
+
const indexed = listSources();
|
|
126
|
+
const passthrough = [
|
|
127
|
+
{ source: "prismis", count: null, type: "passthrough" },
|
|
128
|
+
];
|
|
129
|
+
const sources = [
|
|
130
|
+
...indexed.map((s) => ({ ...s, type: "indexed" })),
|
|
131
|
+
...passthrough,
|
|
132
|
+
];
|
|
126
133
|
output({ success: true, sources });
|
|
127
|
-
console.error(
|
|
134
|
+
console.error(
|
|
135
|
+
`✅ ${indexed.length} indexed sources + ${passthrough.length} passthrough`,
|
|
136
|
+
);
|
|
128
137
|
process.exit(0);
|
|
129
138
|
}
|
|
130
139
|
|