common

package
v0.2.0-beta Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ColorOptionsCNAPPgoatMagenta = table.ColorOptions{
	Footer: text.Colors{text.BgMagenta, text.FgBlack},
	Header: text.Colors{text.BgHiMagenta, text.FgBlack},
}
View Source
var OptionsCNAPPgoatSeparateColumns = table.Options{
	DrawBorder:      false,
	SeparateColumns: true,
	SeparateFooter:  false,
	SeparateHeader:  false,
	SeparateRows:    false,
}
View Source
var TableStyleCNAPPgoatMagenta = table.Style{
	Name:    "TableStyleCNAPPgoatMagenta",
	Box:     table.StyleBoxLight,
	Color:   ColorOptionsCNAPPgoatMagenta,
	Format:  table.FormatOptionsDefault,
	Options: OptionsCNAPPgoatSeparateColumns,
	Title:   table.TitleOptionsMagentaOnBlack,
}

Functions

func AppendScenarioToTable

func AppendScenarioToTable(s *cnappgoat.Scenario, t table.Writer, c int)

func CommandBefore

func CommandBefore(c *cli.Context) error

func CommandFlags

func CommandFlags() []cli.Flag

func CommandUpdateBefore

func CommandUpdateBefore(c *cli.Context) error

func ConfirmForAllScenarios

func ConfirmForAllScenarios(action string, scenariosCount int) (bool, error)

func GetDisplayTable

func GetDisplayTable() table.Writer

func GetScenarios

func GetScenarios(
	args cli.Args,
	reg *cnappgoat.Registry,
	module string,
	platform string,
	state string) ([]*cnappgoat.Scenario, error)

func MainFlags

func MainFlags() []cli.Flag

func OutputFlags

func OutputFlags() []cli.Flag

func SetDebug

func SetDebug(debug bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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