@pump-inc/cli 0.0.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/README.md +905 -0
- package/bin/dev.cmd +3 -0
- package/bin/dev.js +7 -0
- package/bin/run-pkg.js +13 -0
- package/bin/run.cmd +3 -0
- package/bin/run.js +7 -0
- package/dist/api-XWM8zKbb.cjs +21 -0
- package/dist/api-client-bnV0ib_r.cjs +1207 -0
- package/dist/base-command-GfDxcqx6.cjs +451 -0
- package/dist/bin.cjs +15 -0
- package/dist/chunk-CbDLau6x.cjs +34 -0
- package/dist/commands/admin/config/set.cjs +40 -0
- package/dist/commands/admin/organization/create.cjs +83 -0
- package/dist/commands/admin/organization/get.cjs +77 -0
- package/dist/commands/admin/organization/list.cjs +103 -0
- package/dist/commands/admin/user/create.cjs +82 -0
- package/dist/commands/api-key/create.cjs +81 -0
- package/dist/commands/api-key/delete.cjs +48 -0
- package/dist/commands/api-key/list.cjs +85 -0
- package/dist/commands/api-key/update.cjs +81 -0
- package/dist/commands/app/create.cjs +97 -0
- package/dist/commands/app/deploy.cjs +74 -0
- package/dist/commands/app/list.cjs +64 -0
- package/dist/commands/app/secrets.cjs +43 -0
- package/dist/commands/app/status.cjs +78 -0
- package/dist/commands/app/stop.cjs +49 -0
- package/dist/commands/app/usage.cjs +79 -0
- package/dist/commands/auth/test.cjs +56 -0
- package/dist/commands/config/validate.cjs +32 -0
- package/dist/commands/project/create.cjs +79 -0
- package/dist/fix-event-emitter-uhRntilb.cjs +21 -0
- package/dist/index.cjs +16 -0
- package/dist/util/api.cjs +3 -0
- package/dist/util/base-command.cjs +4 -0
- package/dist/util/fix-event-emitter.cjs +3 -0
- package/dist/util/validate-config.cjs +3 -0
- package/dist/validate-config-C9krCzRv.cjs +24 -0
- package/oclif.manifest.json +1099 -0
- package/package.json +85 -0
package/bin/dev.cmd
ADDED
package/bin/dev.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
#!/usr/bin/env -S node --loader ts-node/esm --disable-warning=ExperimentalWarning
|
|
2
|
+
|
|
3
|
+
import { fileURLToPath } from "url";
|
|
4
|
+
import { dirname, join } from "path";
|
|
5
|
+
import { execute } from "@oclif/core";
|
|
6
|
+
|
|
7
|
+
await execute({ development: true, dir: join(dirname(fileURLToPath(import.meta.url)), "..") });
|
package/bin/run-pkg.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const { join } = require("path");
|
|
4
|
+
const { execute } = require("@oclif/core");
|
|
5
|
+
|
|
6
|
+
(async () => {
|
|
7
|
+
try {
|
|
8
|
+
await execute({ dir: join(__dirname, "..") });
|
|
9
|
+
} catch (error) {
|
|
10
|
+
console.error(error);
|
|
11
|
+
process.exit(1);
|
|
12
|
+
}
|
|
13
|
+
})();
|
package/bin/run.cmd
ADDED
package/bin/run.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/util/api.ts
|
|
3
|
+
const getApiUrl = () => {
|
|
4
|
+
let apiUrl = process.env.PUMP_API_URL;
|
|
5
|
+
const defaultUrl = "http://localhost:8000";
|
|
6
|
+
if (!apiUrl) apiUrl = defaultUrl;
|
|
7
|
+
try {
|
|
8
|
+
new URL(apiUrl);
|
|
9
|
+
} catch (error) {
|
|
10
|
+
if (error instanceof TypeError) throw new Error(`Invalid PUMP_API_URL format: ${apiUrl}. Please set a valid URL in the environment variable PUMP_API_URL.`);
|
|
11
|
+
}
|
|
12
|
+
return apiUrl;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
Object.defineProperty(exports, 'getApiUrl', {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () {
|
|
19
|
+
return getApiUrl;
|
|
20
|
+
}
|
|
21
|
+
});
|