@caravo/cli 0.1.0 → 0.1.1
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/dist/cli.js +3 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -173,11 +173,11 @@ function parseArgs(argv) {
|
|
|
173
173
|
}
|
|
174
174
|
return args;
|
|
175
175
|
}
|
|
176
|
-
const VERSION = "
|
|
176
|
+
const VERSION = "0.1.1";
|
|
177
177
|
async function main() {
|
|
178
178
|
const args = parseArgs(process.argv.slice(2));
|
|
179
179
|
if (args.version) {
|
|
180
|
-
process.stdout.write(`
|
|
180
|
+
process.stdout.write(`caravo ${VERSION}\n`);
|
|
181
181
|
process.exit(0);
|
|
182
182
|
}
|
|
183
183
|
if (args.help || !args.subcommand) {
|
|
@@ -192,7 +192,7 @@ async function main() {
|
|
|
192
192
|
switch (args.subcommand) {
|
|
193
193
|
case "search": {
|
|
194
194
|
const { runSearch } = await import("./commands/search.js");
|
|
195
|
-
// Join all positional args so "
|
|
195
|
+
// Join all positional args so "caravo search image generation" works like "image generation"
|
|
196
196
|
const query = args.positional.length > 0 ? args.positional.join(" ") : undefined;
|
|
197
197
|
await runSearch(query, {
|
|
198
198
|
tag: args.tag,
|