@muhkoo/cli 0.15.0-alpha.12 → 0.15.0-alpha.13
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/package.json +2 -2
- package/src/commands/apps.js +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@muhkoo/cli",
|
|
3
|
-
"version": "0.15.0-alpha.
|
|
3
|
+
"version": "0.15.0-alpha.13",
|
|
4
4
|
"description": "Command-line interface for the Muhkoo platform — provision backends, deploy apps, and manage agents, functions, databases, and domains.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"release": "npm publish --tag alpha && npm dist-tag add @muhkoo/cli@$npm_package_version latest"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@muhkoo/connect": "0.15.0-alpha.
|
|
46
|
+
"@muhkoo/connect": "0.15.0-alpha.13",
|
|
47
47
|
"snarkjs": "^0.7.0"
|
|
48
48
|
},
|
|
49
49
|
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e",
|
package/src/commands/apps.js
CHANGED
|
@@ -40,7 +40,9 @@ export default async function apps(args) {
|
|
|
40
40
|
|
|
41
41
|
async function list(ctx, args) {
|
|
42
42
|
const r = ensure(await devCall(ctx, "GET", "/api/apps"), "List apps");
|
|
43
|
-
|
|
43
|
+
// A deleted app stays in the account's list with `deletedAt` set; hide it,
|
|
44
|
+
// as the portal does. `apps get <appId>` still shows one, marked deleted.
|
|
45
|
+
const apps = (r.body?.apps || r.body || []).filter((a) => !a.deletedAt);
|
|
44
46
|
if (args.json) return json(apps);
|
|
45
47
|
if (!apps.length) return info("No apps yet. Create one with `muhkoo apps create --slug <name>`.");
|
|
46
48
|
table(
|
|
@@ -57,6 +59,10 @@ async function get(ctx, args) {
|
|
|
57
59
|
const a = r.body;
|
|
58
60
|
info(`${c.bold("slug")} ${a.slug}`);
|
|
59
61
|
info(`${c.bold("appId")} ${a.appId}`);
|
|
62
|
+
if (a.deletedAt) {
|
|
63
|
+
const d = new Date(a.deletedAt);
|
|
64
|
+
info(`${c.bold("deleted")} ${Number.isNaN(d.getTime()) ? String(a.deletedAt) : d.toISOString().slice(0, 10)}`);
|
|
65
|
+
}
|
|
60
66
|
info(`${c.bold("origins")} ${a.allowedOrigins ?? "*"}`);
|
|
61
67
|
info(`${c.bold("hosting")} https://${a.slug}.${appsSuffixFor(ctx.baseUrl)}`);
|
|
62
68
|
if (Array.isArray(a.keys)) {
|