cliutils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForUpdate added in v0.1.0

func CheckForUpdate() (*string, error)

CheckForUpdate determines the new version by fetching the latest release info. If no newer version exists, it returns nil.

func CheckPackageOperatorVersion added in v0.1.0

func CheckPackageOperatorVersion(ctx context.Context) error

func GetPackageOperatorVersion added in v0.1.0

func GetPackageOperatorVersion(ctx context.Context) (string, error)

func OpenInBrowser added in v0.0.2

func OpenInBrowser(url string) error

func PrintPackageTable

func PrintPackageTable(
	w io.Writer,
	packages []*list.PackageWithStatus,
	cols []string,
	getColsOfRow func(pkg *list.PackageWithStatus) []string,
) error

func RequireBootstrapped added in v0.0.3

func RequireBootstrapped(ctx context.Context, cfg *rest.Config, rawCfg *api.Config)

func RequireConfig

func RequireConfig(filePath string) (*rest.Config, *api.Config)

func SetupClientContext

func SetupClientContext(requireBootstrapped bool, skipUpdateCheck *bool) func(cmd *cobra.Command, args []string)

func UpdateFetch added in v0.0.3

func UpdateFetch()

func YesNoPrompt

func YesNoPrompt(label string, defaultChoice bool) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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