tuicmd

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package tuicmd implements the `tui` command — the interactive, full-screen trading terminal (the human sibling of monitor). It runs against the clienv.Cmd seam so cli dispatches into it without it importing cli.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cx *clienv.Cmd, cmd *cobra.Command, args []string, tuiRun func(tui.Config) error) error

Run resolves config/key/URLs, starts a stream session, and hands its events to the tui package. Order placement/cancellation run through tuiTrader — the same validated, journaled ops path as `order place`/`order cancel`. tuiRun is the interactive renderer (the Deps.TUIRun test seam; nil = the real tui.Run, which needs a TTY) — passed in rather than crossing clienv, since its tui.Config signature would drag the charm dependency into the seam.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL