cmd

package
v0.0.0-...-01ca449 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Module provides all command-related dependencies

Functions

This section is empty.

Types

type AnalyzeCommandResult

type AnalyzeCommandResult struct {
	fx.Out
	AnalyzeCommand *cobra.Command `name:"analyze"`
}

func NewAnalyzeCommand

func NewAnalyzeCommand(handler backtesting.AnalyzeHandler) AnalyzeCommandResult

NewAnalyzeCommand creates the analyze command

type BacktestCommandResult

type BacktestCommandResult struct {
	fx.Out
	BacktestCommand *cobra.Command `name:"backtest"`
}

func NewBacktestCommand

func NewBacktestCommand(handler backtesting.BacktestHandler) BacktestCommandResult

NewBacktestCommand creates the backtest command

type CommandParams

type CommandParams struct {
	fx.In
	Init *cobra.Command `name:"init"`
	//Live     *cobra.Command `name:"live"`
	Backtest *cobra.Command `name:"backtest"`
	Analyze  *cobra.Command `name:"analyze"`
	Version  *cobra.Command `name:"version"`
}

CommandParams uses fx.In to inject named commands

type Commands

type Commands struct {
	Init *cobra.Command
	//Live     *cobra.Command
	Backtest *cobra.Command
	Analyze  *cobra.Command
	Version  *cobra.Command
}

Commands aggregates all cobra commands

func NewCommands

func NewCommands(params CommandParams) *Commands

NewCommands assembles all commands (created by individual providers)

type InitCommandResult

type InitCommandResult struct {
	fx.Out
	InitCommand *cobra.Command `name:"init"`
}

func NewInitCommand

func NewInitCommand(handler setup.InitHandler) InitCommandResult

NewInitCommand creates the init command

type LiveCommandResult

type LiveCommandResult struct {
	fx.Out
	LiveCommand *cobra.Command `name:"live"`
}

func NewLiveCommand

func NewLiveCommand(handler live.LiveHandler) LiveCommandResult

NewLiveCommand creates the live command

type RootCommand

type RootCommand struct {
	Cmd *cobra.Command
}

RootCommand wraps the root cobra command

func NewRootCommand

func NewRootCommand(handler core.RootHandler) *RootCommand

NewRootCommand creates the root command

type RunStrategyCommand

type RunStrategyCommand struct {
	Cmd *cobra.Command
	// contains filtered or unexported fields
}

func NewRunStrategyCommand

func NewRunStrategyCommand(rt live.Runtime) *RunStrategyCommand

type VersionCommandResult

type VersionCommandResult struct {
	fx.Out
	VersionCommand *cobra.Command `name:"version"`
}

func NewVersionCommand

func NewVersionCommand() VersionCommandResult

NewVersionCommand creates the version command

Jump to

Keyboard shortcuts

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