_preview

command
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: MIT Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

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