Documentation
¶
Overview ¶
Package outputs provides types for implementing instance type output functions as well as prebuilt output functions.
Index ¶
- func OneLineOutput(instanceTypeInfoSlice []*instancetypes.Details) []string
- func SimpleInstanceTypeOutput(instanceTypeInfoSlice []*instancetypes.Details) []string
- func TableOutputShort(instanceTypeInfoSlice []*instancetypes.Details) []string
- func TableOutputWide(instanceTypeInfoSlice []*instancetypes.Details) []string
- func VerboseInstanceTypeOutput(instanceTypeInfoSlice []*instancetypes.Details) []string
- type BubbleTeaModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OneLineOutput ¶
func OneLineOutput(instanceTypeInfoSlice []*instancetypes.Details) []string
OneLineOutput is an output function which prints the instance type names on a single line separated by commas.
func SimpleInstanceTypeOutput ¶
func SimpleInstanceTypeOutput(instanceTypeInfoSlice []*instancetypes.Details) []string
SimpleInstanceTypeOutput is an OutputFn which outputs a slice of instance type names.
func TableOutputShort ¶
func TableOutputShort(instanceTypeInfoSlice []*instancetypes.Details) []string
TableOutputShort is an OutputFn which returns a CLI table for easy reading.
func TableOutputWide ¶
func TableOutputWide(instanceTypeInfoSlice []*instancetypes.Details) []string
TableOutputWide is an OutputFn which returns a detailed CLI table for easy reading.
func VerboseInstanceTypeOutput ¶
func VerboseInstanceTypeOutput(instanceTypeInfoSlice []*instancetypes.Details) []string
VerboseInstanceTypeOutput is an OutputFn which outputs a slice of instance type names.
Types ¶
type BubbleTeaModel ¶
type BubbleTeaModel struct {
// contains filtered or unexported fields
}
BubbleTeaModel is used to hold the state of the bubble tea TUI.
func NewBubbleTeaModel ¶
func NewBubbleTeaModel(instanceTypes []*instancetypes.Details) BubbleTeaModel
NewBubbleTeaModel initializes a new bubble tea Model which represents a stylized table to display instance types.
func (BubbleTeaModel) Init ¶
func (m BubbleTeaModel) Init() tea.Cmd
Init is used by bubble tea to initialize a bubble tea table.
func (BubbleTeaModel) Update ¶
Update is used by bubble tea to update the state of the bubble tea model based on user input.
func (BubbleTeaModel) View ¶
func (m BubbleTeaModel) View() string
View is used by bubble tea to render the bubble tea model.