outputs

package
v2.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package outputs provides types for implementing instance type output functions as well as prebuilt output functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OneLineOutput added in v2.0.2

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 added in v2.4.0

type BubbleTeaModel struct {
	// contains filtered or unexported fields
}

BubbleTeaModel is used to hold the state of the bubble tea TUI

func NewBubbleTeaModel added in v2.4.0

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 added in v2.4.0

func (m BubbleTeaModel) Init() tea.Cmd

Init is used by bubble tea to initialize a bubble tea table

func (BubbleTeaModel) Update added in v2.4.0

func (m BubbleTeaModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update is used by bubble tea to update the state of the bubble tea model based on user input

func (BubbleTeaModel) View added in v2.4.0

func (m BubbleTeaModel) View() string

View is used by bubble tea to render the bubble tea model

Jump to

Keyboard shortcuts

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