Documentation
¶
Overview ¶
Command _preview renders the user-facing CLI screens with realistic synthetic fixture data — used for social-preview screenshots, README updates, and visual review without exposing a live account.
The leading underscore in the directory name makes `go build ./...` skip this tool, so it never lands in release tarballs. Invoke by file path:
go run cmd/_preview/main.go # every screen, top-to-bottom go run cmd/_preview/main.go account # one screen go run cmd/_preview/main.go positions # positions --by underlying go run cmd/_preview/main.go positions-flat go run cmd/_preview/main.go chain # chain SYM (expiry list) go run cmd/_preview/main.go chain-strikes go run cmd/_preview/main.go quote go run cmd/_preview/main.go history go run cmd/_preview/main.go scan go run cmd/_preview/main.go size go run cmd/_preview/main.go status
Color is forced on so a tee'd capture (`… | tee /tmp/preview.txt`) keeps the ANSI escapes that screenshot tools like freezer.dev / ray.so / carbon.now.sh need to render the right bold / dim / sign-color layout.
Click to show internal directories.
Click to hide internal directories.