cmd

package
v0.0.0-...-148b98b Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

type CLI struct {
	T *trader.Trader
	// contains filtered or unexported fields
}

func InitialModel

func InitialModel() (*CLI, error)

func (*CLI) HandleError

func (cli *CLI) HandleError(err error)

func (*CLI) HandleFatal

func (cli *CLI) HandleFatal(err error)

func (CLI) Init

func (cli CLI) Init() tea.Cmd

func (*CLI) Logic

func (cli *CLI) Logic() tea.Msg

func (*CLI) QuitApp

func (cli *CLI) QuitApp() (tea.Model, tea.Cmd)

func (*CLI) Update

func (cli *CLI) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*CLI) View

func (cli *CLI) View() string

The main view, which just calls the appropriate sub-view

type ViewNode

type ViewNode struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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