helper

package module
v0.0.0-...-777a2a0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: MIT Imports: 10 Imported by: 0

README

helpers

Golang Helpers for CLI Apps

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckError

func CheckError(e error)

func ClearScreen

func ClearScreen()

ClearScreen - 'mandatory' on vscode

func ClearScreenOrPreviousScreenText

func ClearScreenOrPreviousScreenText()

ClearScreenOrPreviousScreenText - 'mandatory' on vscode

func DisplayTable

func DisplayTable(resourceGroups interface{})

DisplayTable - Show Table Contents

func GenerateCellsForBody

func GenerateCellsForBody(values []string, size int) []*simpletable.Cell

GenerateCellsForBody - Generate Cells for body

func GenerateCellsForHeader

func GenerateCellsForHeader(fields []string, color string) []*simpletable.Cell

GenerateCellsForHeader -

func GetAllFieldsAndValues

func GetAllFieldsAndValues(azureResource interface{}) ([]string, []string)

GetAllFieldsAndValues - Get All Fields And Values

func GetResourceMetada

func GetResourceMetada(resourceGroups interface{}) ([]string, []string)

GetResourceMetada - Get struct information via reflection

func GetTypeAttributes

func GetTypeAttributes(azureResource interface{}) (reflect.Type, int)

GetTypeAttributes - Get Fields

func ListMenuItem

func ListMenuItem(command string, description string)

ListMenuItem - 'mandatory' on vscode

func Loading

func Loading()

Loading - 'mandatory' on vscode

func PrintColoredDashes

func PrintColoredDashes(dashCount int, color string) string

PrintColoredDashes - 'mandatory' on vscode

func PrintColoredText

func PrintColoredText(text string, color string) string

PrintColoredText - 'mandatory' on vscode

func ReadCommand

func ReadCommand() string

ReadCommand - 'mandatory' on vscode

func ReadCommandPassword

func ReadCommandPassword() string

ReadCommand - 'mandatory' on vscode

func ShowTable

func ShowTable(fields []string, values []string)

ShowTable - Show Table Contents

func WindowHeaderError

func WindowHeaderError(message string)

func WindowHeaderSuccess

func WindowHeaderSuccess(message string)

func WindowHeaderWarning

func WindowHeaderWarning(message string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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