cmd

package
v0.0.0-...-e29a901 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDetailsCommand

func BuildDetailsCommand(c api.FplAPI, config helpers.ConfigReader, teamParser helpers.TeamsParser, renderer ui.Renderer) *cobra.Command

BuildDetailsCommand returns the details cobra command

func BuildFixturesCommand

func BuildFixturesCommand(c api.FplAPI, config helpers.ConfigReader, teamParser helpers.TeamsParser, gameweekParser helpers.GameweekParser, renderer ui.Renderer) *cobra.Command

BuildFixturesCommand returns the fixtures cobra command

func BuildHistoryCommand

func BuildHistoryCommand(c api.FplAPI, config helpers.ConfigReader, teamParser helpers.TeamsParser, renderer ui.Renderer) *cobra.Command

BuildHistoryCommand returns the history cobra command

func BuildPointsCommand

func BuildPointsCommand(c api.FplAPI, config helpers.ConfigReader, teamsParser helpers.TeamsParser, gameweekParser helpers.GameweekParser, renderer ui.Renderer) *cobra.Command

BuildPointsCommand returns the points cobra command

func BuildRivalsCommand

func BuildRivalsCommand(c api.FplAPI, config helpers.ConfigReader, gameweekParser helpers.GameweekParser, renderer ui.Renderer) *cobra.Command

BuildRivalsCommand returns the rivals cobra command

func BuildRootCommand

func BuildRootCommand() *cobra.Command

BuildRootCommand returns the root cobra command

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type DetailsArgs

type DetailsArgs struct {
	TeamID string
}

DetailsArgs are the arguments you can pass to the history command

type HistoryArgs

type HistoryArgs struct {
	TeamID string
}

HistoryArgs are the arguments you can pass to the history command

type PointsArgs

type PointsArgs struct {
	TeamID string
}

PointsArgs are the arguments you can pass to the points command

Jump to

Keyboard shortcuts

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