@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.
Files changed (39) hide show
  1. package/README.md +905 -0
  2. package/bin/dev.cmd +3 -0
  3. package/bin/dev.js +7 -0
  4. package/bin/run-pkg.js +13 -0
  5. package/bin/run.cmd +3 -0
  6. package/bin/run.js +7 -0
  7. package/dist/api-XWM8zKbb.cjs +21 -0
  8. package/dist/api-client-bnV0ib_r.cjs +1207 -0
  9. package/dist/base-command-GfDxcqx6.cjs +451 -0
  10. package/dist/bin.cjs +15 -0
  11. package/dist/chunk-CbDLau6x.cjs +34 -0
  12. package/dist/commands/admin/config/set.cjs +40 -0
  13. package/dist/commands/admin/organization/create.cjs +83 -0
  14. package/dist/commands/admin/organization/get.cjs +77 -0
  15. package/dist/commands/admin/organization/list.cjs +103 -0
  16. package/dist/commands/admin/user/create.cjs +82 -0
  17. package/dist/commands/api-key/create.cjs +81 -0
  18. package/dist/commands/api-key/delete.cjs +48 -0
  19. package/dist/commands/api-key/list.cjs +85 -0
  20. package/dist/commands/api-key/update.cjs +81 -0
  21. package/dist/commands/app/create.cjs +97 -0
  22. package/dist/commands/app/deploy.cjs +74 -0
  23. package/dist/commands/app/list.cjs +64 -0
  24. package/dist/commands/app/secrets.cjs +43 -0
  25. package/dist/commands/app/status.cjs +78 -0
  26. package/dist/commands/app/stop.cjs +49 -0
  27. package/dist/commands/app/usage.cjs +79 -0
  28. package/dist/commands/auth/test.cjs +56 -0
  29. package/dist/commands/config/validate.cjs +32 -0
  30. package/dist/commands/project/create.cjs +79 -0
  31. package/dist/fix-event-emitter-uhRntilb.cjs +21 -0
  32. package/dist/index.cjs +16 -0
  33. package/dist/util/api.cjs +3 -0
  34. package/dist/util/base-command.cjs +4 -0
  35. package/dist/util/fix-event-emitter.cjs +3 -0
  36. package/dist/util/validate-config.cjs +3 -0
  37. package/dist/validate-config-C9krCzRv.cjs +24 -0
  38. package/oclif.manifest.json +1099 -0
  39. package/package.json +85 -0
package/bin/dev.cmd ADDED
@@ -0,0 +1,3 @@
1
+ @echo off
2
+
3
+ node --loader ts-node/esm --no-warnings=ExperimentalWarning "%~dp0\dev" %*
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
@@ -0,0 +1,3 @@
1
+ @echo off
2
+
3
+ node "%~dp0\run" %*
package/bin/run.js ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { fileURLToPath } from "url";
4
+ import { dirname, join } from "path";
5
+ import { execute } from "@oclif/core";
6
+
7
+ await execute({ dir: join(dirname(fileURLToPath(import.meta.url)), "..") });
@@ -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
+ });