@indiekitai/pg-dash 0.4.3 → 0.4.4
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.js +3 -2
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -4078,6 +4078,7 @@ pg-dash \u2014 Lightweight PostgreSQL Monitoring Dashboard
|
|
|
4078
4078
|
Usage:
|
|
4079
4079
|
pg-dash <connection-string> Start dashboard
|
|
4080
4080
|
pg-dash check <connection-string> Run health check and exit
|
|
4081
|
+
pg-dash health <connection-string> Alias for check
|
|
4081
4082
|
pg-dash check-migration <file> [connection] Analyze migration SQL for risks
|
|
4082
4083
|
pg-dash diff-env --source <url> --target <url> Compare two environments
|
|
4083
4084
|
pg-dash schema-diff <connection-string> Show latest schema changes
|
|
@@ -4120,7 +4121,7 @@ Environment variables:
|
|
|
4120
4121
|
`);
|
|
4121
4122
|
process.exit(0);
|
|
4122
4123
|
}
|
|
4123
|
-
var KNOWN_SUBCOMMANDS = ["check", "check-migration", "schema-diff", "diff-env"];
|
|
4124
|
+
var KNOWN_SUBCOMMANDS = ["check", "health", "check-migration", "schema-diff", "diff-env"];
|
|
4124
4125
|
var subcommand = positionals[0];
|
|
4125
4126
|
function isValidConnectionString(s) {
|
|
4126
4127
|
return s.startsWith("postgresql://") || s.startsWith("postgres://") || s.includes("@") || // user@host shorthand
|
|
@@ -4153,7 +4154,7 @@ Run pg-dash --help for usage.`
|
|
|
4153
4154
|
}
|
|
4154
4155
|
return connStr;
|
|
4155
4156
|
}
|
|
4156
|
-
if (subcommand === "check") {
|
|
4157
|
+
if (subcommand === "check" || subcommand === "health") {
|
|
4157
4158
|
const connectionString = resolveConnectionString(1);
|
|
4158
4159
|
const threshold = parseInt(values.threshold || "70", 10);
|
|
4159
4160
|
const format = values.format || "text";
|