outputs

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 21 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

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

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

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