mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-01 09:29:38 +02:00
feat(ts): complete schema-first phase 2
This commit is contained in:
parent
0746d7ffd5
commit
be2370ee7b
24 changed files with 465 additions and 433 deletions
|
|
@ -16,12 +16,12 @@ import * as S from "effect/Schema";
|
|||
import * as Command from "effect/unstable/cli/Command";
|
||||
import * as Flag from "effect/unstable/cli/Flag";
|
||||
|
||||
export interface CliOpts {
|
||||
gateway: string;
|
||||
user: string;
|
||||
token?: string;
|
||||
flow: string;
|
||||
}
|
||||
export class CliOpts extends S.Class<CliOpts>("CliOpts")({
|
||||
gateway: S.String,
|
||||
user: S.String,
|
||||
token: S.optionalKey(S.String),
|
||||
flow: S.String,
|
||||
}, { description: "Resolved TrustGraph CLI connection options." }) {}
|
||||
|
||||
export const rootCommand = Command.make("tg").pipe(
|
||||
Command.withDescription("TrustGraph CLI - interact with TrustGraph services"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue