@seedvault/cli 0.4.2 → 0.4.3
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/sv.js +10 -12
- package/package.json +1 -1
package/dist/sv.js
CHANGED
|
@@ -2780,15 +2780,13 @@ async function startForeground() {
|
|
|
2780
2780
|
collections: config.collections,
|
|
2781
2781
|
onLog: log
|
|
2782
2782
|
});
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
log("Will continue watching for changes...");
|
|
2791
|
-
}
|
|
2783
|
+
log("Running initial sync...");
|
|
2784
|
+
try {
|
|
2785
|
+
const { uploaded, skipped, deleted } = await syncer.initialSync();
|
|
2786
|
+
log(`Initial sync complete: ${uploaded} uploaded, ${skipped} skipped, ${deleted} deleted`);
|
|
2787
|
+
} catch (e) {
|
|
2788
|
+
log(`Initial sync failed: ${e.message}`);
|
|
2789
|
+
log("Will continue watching for changes...");
|
|
2792
2790
|
}
|
|
2793
2791
|
let watcher = null;
|
|
2794
2792
|
const rebuildWatcher = async (collections2) => {
|
|
@@ -3047,7 +3045,7 @@ Share this with the person you want to invite.`);
|
|
|
3047
3045
|
}
|
|
3048
3046
|
}
|
|
3049
3047
|
|
|
3050
|
-
// src/commands/
|
|
3048
|
+
// src/commands/update.ts
|
|
3051
3049
|
import { readFileSync as readFileSync2 } from "fs";
|
|
3052
3050
|
import { resolve as resolve6 } from "path";
|
|
3053
3051
|
var {$ } = globalThis.Bun;
|
|
@@ -3105,7 +3103,7 @@ Vault:
|
|
|
3105
3103
|
invite Generate an invite code (operator only)
|
|
3106
3104
|
|
|
3107
3105
|
Maintenance:
|
|
3108
|
-
|
|
3106
|
+
update Update CLI to latest version
|
|
3109
3107
|
`.trim();
|
|
3110
3108
|
async function main() {
|
|
3111
3109
|
const [cmd, ...args] = process.argv.slice(2);
|
|
@@ -3145,7 +3143,7 @@ async function main() {
|
|
|
3145
3143
|
return await contributors();
|
|
3146
3144
|
case "invite":
|
|
3147
3145
|
return await invite();
|
|
3148
|
-
case "
|
|
3146
|
+
case "update":
|
|
3149
3147
|
return await upgrade();
|
|
3150
3148
|
default:
|
|
3151
3149
|
console.error(`Unknown command: ${cmd}
|