mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-07-18 21:21:11 +02:00
initial version of tui
This commit is contained in:
parent
89a2fc583e
commit
d0d0a3612e
14 changed files with 2079 additions and 70 deletions
8
apps/cli/src/tui/index.tsx
Normal file
8
apps/cli/src/tui/index.tsx
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import React from "react";
|
||||
import { render } from "ink";
|
||||
import { RowboatTui } from "./ui.js";
|
||||
|
||||
export function runTui({ serverUrl }: { serverUrl?: string }) {
|
||||
const baseUrl = serverUrl ?? process.env.ROWBOATX_SERVER_URL ?? "http://127.0.0.1:3000";
|
||||
render(<RowboatTui serverUrl={baseUrl} />);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue