@base44-preview/cli 0.0.45-pr.420.8c1e69a → 0.0.45-pr.420.9de65ab
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/index.js +12 -2
- package/dist/cli/index.js.map +4 -4
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -248471,7 +248471,11 @@ async function link(options) {
|
|
|
248471
248471
|
return { outroMessage: "Project linked" };
|
|
248472
248472
|
}
|
|
248473
248473
|
function getLinkCommand() {
|
|
248474
|
-
return new Base44Command("link", { requireAppConfig: false }).description("Link a local project to a Base44 project (create new or link existing)").option("-c, --create", "Create a new project (skip selection prompt)").option("-n, --name <name>", "Project name (required when --create is used)").option("-d, --description <description>", "Project description").option("-p, --projectId <id>", "Project ID to link to an existing project (skips selection prompt)").hook("preAction", validateNonInteractiveFlags2).action(async (options) => {
|
|
248474
|
+
return new Base44Command("link", { requireAppConfig: false }).description("Link a local project to a Base44 project (create new or link existing)").option("-c, --create", "Create a new project (skip selection prompt)").option("-n, --name <name>", "Project name (required when --create is used)").option("-d, --description <description>", "Project description").option("-p, --projectId <id>", "Project ID to link to an existing project (skips selection prompt)").hook("preAction", validateNonInteractiveFlags2).action(async (options, command2) => {
|
|
248475
|
+
const skipPrompts = !!options.create || !!options.projectId;
|
|
248476
|
+
if (!skipPrompts && command2.isNonInteractive) {
|
|
248477
|
+
throw new InvalidInputError("Either --create --name <name> or --projectId <id> is required in non-interactive mode");
|
|
248478
|
+
}
|
|
248475
248479
|
return await link(options);
|
|
248476
248480
|
});
|
|
248477
248481
|
}
|
|
@@ -251763,6 +251767,12 @@ async function eject(options8) {
|
|
|
251763
251767
|
}
|
|
251764
251768
|
function getEjectCommand() {
|
|
251765
251769
|
return new Base44Command("eject", { requireAppConfig: false }).description("Download the code for an existing Base44 project").option("-p, --path <path>", "Path where to write the project").option("--project-id <id>", "Project ID to eject (skips interactive selection)").option("-y, --yes", "Skip confirmation prompts").action(async (options8, command2) => {
|
|
251770
|
+
if (command2.isNonInteractive && !options8.projectId) {
|
|
251771
|
+
throw new InvalidInputError("--project-id is required in non-interactive mode");
|
|
251772
|
+
}
|
|
251773
|
+
if (command2.isNonInteractive && !options8.path) {
|
|
251774
|
+
throw new InvalidInputError("--path is required in non-interactive mode");
|
|
251775
|
+
}
|
|
251766
251776
|
return await eject({
|
|
251767
251777
|
...options8,
|
|
251768
251778
|
isNonInteractive: command2.isNonInteractive
|
|
@@ -256040,4 +256050,4 @@ export {
|
|
|
256040
256050
|
CLIExitError
|
|
256041
256051
|
};
|
|
256042
256052
|
|
|
256043
|
-
//# debugId=
|
|
256053
|
+
//# debugId=633CFCDA24D8535E64756E2164756E21
|