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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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