This commit is contained in:
2026-09-03 11:28:30 +07:00 Unverified
parent 26c2d0f015
commit 82d0fe3e0d
93 changed files with 19237 additions and 1285 deletions
+9 -1
View File
@@ -1,4 +1,5 @@
import { describe, expect, test } from "bun:test";
import { login, logout, whoami } from "../../command/auth";
import { db } from "../../command/db";
import { down } from "../../command/down";
import { exec } from "../../command/exec";
@@ -23,6 +24,9 @@ type Command = {
describe("CLI command definitions", () => {
const commands = [
["up", "Create and start deployments", up],
["login", "Log in to kuber.astrxl.dev", login],
["logout", "Log out of kuber.astrxl.dev", logout],
["whoami", "Show the current kuber user", whoami],
["start", "Start deployments without rebuilding images", start],
["stop", "Scale managed deployments to zero", stop],
["restart", "Roll out a restart for managed deployments", restart],
@@ -30,7 +34,8 @@ describe("CLI command definitions", () => {
["s3", "Inspect managed S3 storage", s3],
["down", "Delete managed resources except ingress and PVCs", down],
["ps", "List deployments", ps],
["logs", "Show deployment logs", logs], ["exec", "Execute a command inside a deployment pod", exec],
["logs", "Show deployment logs", logs],
["exec", "Execute a command inside a deployment pod", exec],
["export", "Write rendered manifests to a YAML file", exportCommand],
["db", "Inspect managed postgres databases", db],
] as const;
@@ -74,6 +79,9 @@ describe("CLI command definitions", () => {
expect((main as Command).args?.config).toMatchObject({
type: "string",
});
expect((login as Command).args?.persist).toMatchObject({
type: "boolean",
});
});
test("defines both database inspection subcommands", () => {