mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
* feat(cli): manage workspace scripts * docs: document workspace script management --------- Co-authored-by: Mohamed Boudra <boudra.moha@gmail.com>
18 lines
795 B
TypeScript
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 },
|
|
],
|
|
};
|