@base44-preview/cli 0.0.41-pr.394.651c0cf → 0.0.41-pr.394.8cb0692
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 +4 -4
- package/dist/cli/index.js.map +4 -4
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -247919,7 +247919,7 @@ function getLogsCommand(context) {
|
|
|
247919
247919
|
return new Command("logs").description("Fetch function logs for this app").option("--function <names>", "Filter by function name(s), comma-separated. If omitted, fetches logs for all project functions").option("--since <datetime>", "Show logs from this time (ISO format)", normalizeDatetime).option("--until <datetime>", "Show logs until this time (ISO format)", normalizeDatetime).addOption(new Option("--level <level>", "Filter by log level").choices([...LogLevelSchema.options]).hideHelp()).option("-n, --limit <n>", "Results per page (1-1000, default: 50)", (v) => {
|
|
247920
247920
|
const n2 = Number.parseInt(v, 10);
|
|
247921
247921
|
if (Number.isNaN(n2) || n2 < 1 || n2 > 1000) {
|
|
247922
|
-
throw new
|
|
247922
|
+
throw new InvalidInputError(`Invalid limit: "${v}". Must be a number between 1 and 1000.`);
|
|
247923
247923
|
}
|
|
247924
247924
|
return v;
|
|
247925
247925
|
}).addOption(new Option("--order <order>", "Sort order").choices(["asc", "desc"])).action(async (options) => {
|
|
@@ -247994,10 +247994,10 @@ function validateInput(command) {
|
|
|
247994
247994
|
const hasEntries = entries.length > 0;
|
|
247995
247995
|
const hasEnvFile = Boolean(envFile);
|
|
247996
247996
|
if (!hasEntries && !hasEnvFile) {
|
|
247997
|
-
|
|
247997
|
+
throw new InvalidInputError("Provide KEY=VALUE pairs or use --env-file. Example: base44 secrets set KEY1=VALUE1 KEY2=VALUE2");
|
|
247998
247998
|
}
|
|
247999
247999
|
if (hasEntries && hasEnvFile) {
|
|
248000
|
-
|
|
248000
|
+
throw new InvalidInputError("Provide KEY=VALUE pairs or --env-file, but not both.");
|
|
248001
248001
|
}
|
|
248002
248002
|
}
|
|
248003
248003
|
async function setSecretsAction(entries, options) {
|
|
@@ -255142,4 +255142,4 @@ export {
|
|
|
255142
255142
|
CLIExitError
|
|
255143
255143
|
};
|
|
255144
255144
|
|
|
255145
|
-
//# debugId=
|
|
255145
|
+
//# debugId=329D9AC43EA2056364756E2164756E21
|