cli_utils

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangedComponentsFlags

func ChangedComponentsFlags(cmd cobra.Command) []string

ChangedComponentsFlags

@brief:

ChangedComponentsFlags checks which components flag were changed by the user.
The passed cmd must have the flags: provider, data-sources and resources under it

@params:

cmd - cobra.Command - the Command to look for flags under

@returns:

[]string - the resources to filter the output according to

func GetFixedProvidersFlag

func GetFixedProvidersFlag(cmd cobra.Command) workspace.Workspace

GetFixedProvidersFlag

@brief:

GetFixedProvidersFlag returns a parsed workspace with the providers inserted under the fixed-providers flag

@params:

cmd - cobra.Command - the Command to look for flags under

@returns:

workspace.Workspace - the workspace which holds all the providers found

func GetTable

func GetTable(headers []string) *tablewriter.Table

GetTable

@brief:

GetTable returns a new initialized table

@params:

headers - []string - the list of headers to append to the new table

@returns:

*tablewriter.Table - the new table

func SirrendLogoPrint

func SirrendLogoPrint()

SirrendLogoPrint

@brief:

SirrendLogoPrint prints the Sirrend logo

Types

This section is empty.

Jump to

Keyboard shortcuts

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