cli

package
v4.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig(dep c.Dependencies, configPath string, options Options) (c.Config, error)

func GetContext

func GetContext(d c.Dependencies, config c.Config) (c.Context, error)

GetContext builds the context from the config and reference data

func GetDependencies

func GetDependencies() c.Dependencies

func Run

func Run(uiStartFn func() error) func(*cobra.Command, []string)

Run starts the ticker UI

func Validate

func Validate(config *c.Config, options *Options, prevErr *error) func(*cobra.Command, []string) error

Validate checks whether config is valid and returns an error if invalid or if an error was generated earlier

Types

type Options

type Options struct {
	RefreshInterval       int
	Watchlist             string
	Separate              bool
	ExtraInfoExchange     bool
	ExtraInfoFundamentals bool
	ShowSummary           bool
	ShowHoldings          bool
	Proxy                 string
	Sort                  string
}

Options to configured ticker behavior

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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