@absolutejs/absolute 0.19.0-beta.665 → 0.19.0-beta.667
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/index.js +624 -167
- package/dist/index.js +3 -2
- package/dist/index.js.map +3 -3
- package/dist/src/cli/utils.d.ts +1 -1
- package/dist/src/cli/workspaceTui.d.ts +27 -0
- package/package.json +1 -1
package/dist/src/cli/utils.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare const COMPOSE_PATH = "db/docker-compose.db.yml";
|
|
|
3
3
|
export declare const DEFAULT_SERVER_ENTRY = "src/backend/server.ts";
|
|
4
4
|
export declare const isWSLEnvironment: () => boolean;
|
|
5
5
|
export declare const killStaleProcesses: (port: number) => void;
|
|
6
|
-
export declare const printHelp: () => void;
|
|
6
|
+
export declare const printHelp: (subject?: string) => void;
|
|
7
7
|
export declare const printHint: () => void;
|
|
8
8
|
export declare const readDbScripts: () => Promise<{
|
|
9
9
|
downCommand: string;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { WorkspaceServiceVisibility } from '../../types/build';
|
|
2
|
+
type WorkspaceTuiStatus = 'pending' | 'starting' | 'ready' | 'paused' | 'restarting' | 'stopped' | 'error';
|
|
3
|
+
type WorkspaceTuiLogLevel = 'info' | 'warn' | 'error' | 'success';
|
|
4
|
+
type WorkspaceTuiService = {
|
|
5
|
+
name: string;
|
|
6
|
+
port?: number;
|
|
7
|
+
url?: string | null;
|
|
8
|
+
visibility: WorkspaceServiceVisibility;
|
|
9
|
+
};
|
|
10
|
+
type WorkspaceTuiActions = {
|
|
11
|
+
open: () => void | Promise<void>;
|
|
12
|
+
pause: () => void | Promise<void>;
|
|
13
|
+
quit: () => void | Promise<void>;
|
|
14
|
+
restart: () => void | Promise<void>;
|
|
15
|
+
shell: (command: string) => void | Promise<void>;
|
|
16
|
+
};
|
|
17
|
+
export declare const createWorkspaceTui: ({ actions, services }: {
|
|
18
|
+
actions: WorkspaceTuiActions;
|
|
19
|
+
services: WorkspaceTuiService[];
|
|
20
|
+
}) => {
|
|
21
|
+
addLog: (source: string, message: string, level?: WorkspaceTuiLogLevel) => void;
|
|
22
|
+
clearLogs: () => void;
|
|
23
|
+
dispose: () => void;
|
|
24
|
+
setServiceStatus: (name: string, status: WorkspaceTuiStatus, detail?: string) => void;
|
|
25
|
+
start: () => void;
|
|
26
|
+
};
|
|
27
|
+
export {};
|
package/package.json
CHANGED