format

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertServiceName

func ConvertServiceName(serviceName string) string

ConvertServiceName converts service name to endpoint format Example:

cost_analysis -> cost-analysis

func FetchServiceResources

func FetchServiceResources(service, endpoint string, shortNamesMap map[string]string) ([][]string, error)

func GenerateIdentifier

func GenerateIdentifier(item map[string]interface{}) string

func PrintNewItems

func PrintNewItems(items []map[string]interface{})

func RenderTable

func RenderTable(data [][]string)

func SetParentHelp

func SetParentHelp(cmd *cobra.Command, args []string)

SetParentHelp customizes the help output for the parent command

func SetVerbHelp

func SetVerbHelp(cmd *cobra.Command, args []string)

SetVerbHelp customizes the help output for verb commands

func ValidateServiceCommand

func ValidateServiceCommand(service, verb, resourceName string) error

ValidateServiceCommand checks if the given verb and resource are valid for the service

Types

This section is empty.

Jump to

Keyboard shortcuts

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