Files
paseo/packages/cli/src/commands/script/schema.ts
Matt Cowger 21404fbdec feat(cli): manage workspace scripts (#1992)
* feat(cli): manage workspace scripts

* docs: document workspace script management

---------

Co-authored-by: Mohamed Boudra <boudra.moha@gmail.com>
2026-07-24 21:12:14 +08:00

18 lines
795 B
TypeScript

import type { WorkspaceScriptPayload } from "@getpaseo/protocol/messages";
import type { OutputSchema } from "../../output/index.js";
export type WorkspaceScriptRow = WorkspaceScriptPayload;
export const workspaceScriptSchema: OutputSchema<WorkspaceScriptRow> = {
idField: "scriptName",
columns: [
{ header: "NAME", field: "scriptName", width: 20 },
{ header: "TYPE", field: "type", width: 9 },
{ header: "LIFECYCLE", field: "lifecycle", width: 10 },
{ header: "HEALTH", field: (script) => script.health ?? "-", width: 10 },
{ header: "PORT", field: (script) => script.port ?? "-", width: 7 },
{ header: "PROXY URL", field: (script) => script.proxyUrl ?? "-", width: 42 },
{ header: "TERMINAL", field: (script) => script.terminalId ?? "-", width: 12 },
],
};