commandline

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CostAndForecast

func CostAndForecast() *cobra.Command

func HasAccountInformation

func HasAccountInformation(groupBy []string) bool

func Initialize

func Initialize()

func IsValidGranularity

func IsValidGranularity(g string) bool

func IsValidMetric

func IsValidMetric(m string) bool

func IsValidPrintFormat

func IsValidPrintFormat(f string) bool

func RootCommand added in v0.5.1

func RootCommand() *cobra.Command

func ValidateEndDate

func ValidateEndDate(endDate, startDate string) error

func ValidateInput

func ValidateInput(input model.CommandLineInput) error

func ValidateStartDate

func ValidateStartDate(startDate string) error

Types

type CostCommandType

type CostCommandType struct {
	Cmd *cobra.Command
}

func (*CostCommandType) DefineFlags

func (c *CostCommandType) DefineFlags()

func (*CostCommandType) Execute

func (*CostCommandType) ExtractFilterBySelection

func (c *CostCommandType) ExtractFilterBySelection() (model.
	FilterBySelections, error)

func (*CostCommandType) ExtractGroupBySelections

func (c *CostCommandType) ExtractGroupBySelections() ([]string, []string)

func (*CostCommandType) ExtractPrintPreferences

func (c *CostCommandType) ExtractPrintPreferences() model.
	PrintOptions

func (*CostCommandType) ExtractStartAndEndDates

func (c *CostCommandType) ExtractStartAndEndDates() (
	string, string, error)

func (*CostCommandType) InputHandler

func (c *CostCommandType) InputHandler(validatorFn func(input model.CommandLineInput) error) (model.CommandLineInput, error)

func (*CostCommandType) RunE

func (c *CostCommandType) RunE(cmd *cobra.Command,
	args []string) error

func (*CostCommandType) SynthesizeRequest

type ForecastCommandType

type ForecastCommandType struct {
	Cmd *cobra.Command
}

func (*ForecastCommandType) DefineFlags

func (f *ForecastCommandType) DefineFlags()

func (*ForecastCommandType) Execute

func (*ForecastCommandType) InputHandler

func (*ForecastCommandType) RunE

func (f *ForecastCommandType) RunE(cmd *cobra.Command, args []string) error

func (*ForecastCommandType) SynthesizeRequest

type ValidationError

type ValidationError struct {
	Message string
}

func (ValidationError) Error

func (e ValidationError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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