@qaecy/cue-cli 0.0.10 → 0.0.11
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/main.js +11 -1
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -8473,7 +8473,17 @@ async function syncHandler(options) {
|
|
|
8473
8473
|
}
|
|
8474
8474
|
|
|
8475
8475
|
// apps/desktop/cue-cli/src/main.ts
|
|
8476
|
-
var packageJson
|
|
8476
|
+
var packageJson;
|
|
8477
|
+
try {
|
|
8478
|
+
packageJson = JSON.parse((0, import_fs12.readFileSync)((0, import_path7.join)(__dirname, "package.json"), "utf8"));
|
|
8479
|
+
} catch {
|
|
8480
|
+
try {
|
|
8481
|
+
packageJson = JSON.parse((0, import_fs12.readFileSync)((0, import_path7.join)(__dirname, "../package.json"), "utf8"));
|
|
8482
|
+
} catch {
|
|
8483
|
+
packageJson = { version: "0.0.0" };
|
|
8484
|
+
console.warn("Could not find package.json, using fallback version");
|
|
8485
|
+
}
|
|
8486
|
+
}
|
|
8477
8487
|
var program = new import_commander.Command();
|
|
8478
8488
|
program.name("cue-cli").description("Cue Command Line Interface").version(packageJson.version);
|
|
8479
8489
|
program.command("sync").description("Sync files to Cue").requiredOption("-s, --space <id>", "Specify the space ID (required)").requiredOption("-p, --path <id>", "Specify the folder path (required)").option("-k, --key <api-key>", "Specify the API key (or set CUE_API_KEY env variable)").option("--provider <provider ID>", "Specify the provider ID (eg. sharepoint, drive, dropbox) or leave empty for default provider", "").option("-v, --verbose", "Enable verbose output", false).option("-e, --emulators", "Uses emulators for sync", false).option("-z, --zip", 'Include zipped content (will be unzipped to path "<zip_path>_unzipped". Max uncompressed size: 500 MB, max recursion depth: 3)', false).action(syncHandler);
|