Hyperlinkv0.9.0-beta.0

Hyperlink

Hyperlink.cliconstsrc/cli/index.ts:269
(tree: CliTree, rootName?: string): ReturnType<typeof buildCommand>
(tree: CliTree, options: CliOptions): CliRun

Build the Hyperlink control surface from a CliTree.

  • cli(Fleet, "hyperlink") → Effect Command (wire with Command.runWith)
  • cli(Fleet, { name: "hyperlink", version })CliRun (runWith baked in)
CliTreeCliRun
Source src/cli/index.ts:26911 lines
export const cli: {
  (tree: CliTree, rootName?: string): ReturnType<typeof buildCommand>;
  (tree: CliTree, options: CliOptions): CliRun;
} = ((tree: CliTree, second?: string | CliOptions) => {
  if (typeof second === "object" && second !== null) {
    return Command.runWith(buildCommand(tree, second.name ?? "cli"), {
      version: second.version,
    });
  }
  return buildCommand(tree, second ?? "cli");
}) as typeof cli;