mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-25 08:26:22 +02:00
initial version of tui
This commit is contained in:
parent
89a2fc583e
commit
d0d0a3612e
14 changed files with 2079 additions and 70 deletions
|
|
@ -1,7 +1,8 @@
|
|||
#!/usr/bin/env node
|
||||
import yargs from 'yargs';
|
||||
import { hideBin } from 'yargs/helpers';
|
||||
import { app, modelConfig, updateState, importExample, listExamples, exportWorkflow } from '../dist/app.js';
|
||||
import { app, modelConfig, importExample, listExamples, exportWorkflow } from '../dist/app.js';
|
||||
import { runTui } from '../dist/tui/index.js';
|
||||
|
||||
yargs(hideBin(process.argv))
|
||||
|
||||
|
|
@ -36,6 +37,20 @@ yargs(hideBin(process.argv))
|
|||
});
|
||||
}
|
||||
)
|
||||
.command(
|
||||
"ui",
|
||||
"Launch the interactive Rowboat dashboard",
|
||||
(y) => y
|
||||
.option("server-url", {
|
||||
type: "string",
|
||||
description: "Rowboat server base URL",
|
||||
}),
|
||||
(argv) => {
|
||||
runTui({
|
||||
serverUrl: argv.serverUrl,
|
||||
});
|
||||
}
|
||||
)
|
||||
.command(
|
||||
"import",
|
||||
"Import an example workflow (--example) or custom workflow from file (--file)",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue