cmdutil

package
v0.46.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// The default indentation to use when printing data to stdout
	DefaultJSONIndent = "    "
	// DefaultPollTime is the default interval to wait when polling a network request
	DefaultPollTime = time.Millisecond * 5000
)

Variables

This section is empty.

Functions

func ConvertPageValueToInt32

func ConvertPageValueToInt32(s string) int32

func ConvertSizeValueToInt32

func ConvertSizeValueToInt32(s string) int32

func DoSelfUpdate added in v0.40.0

func DoSelfUpdate(f *factory.Factory) (bool, error)

DoSelfUpdate checks for updates and prompts the user to update if there is a newer version available

func DoSelfUpdateOnceADay added in v0.40.0

func DoSelfUpdateOnceADay(f *factory.Factory) (bool, error)

DoSelfUpdate checks for updates once per day and prompts the user to update if there is a newer version available

func StringSliceToListStringWithQuotes

func StringSliceToListStringWithQuotes(validOptions []string) string

StringSliceToListStringWithQuotes converts a string slice to a comma-separated list with each value in quotes. Example: "a", "b", "c"

Types

This section is empty.

Directories

Path Synopsis
Package flagutil is a helper package for processing and interactive command line flags
Package flagutil is a helper package for processing and interactive command line flags
This file contains functions that help to manage visibility of early stage commands
This file contains functions that help to manage visibility of early stage commands

Jump to

Keyboard shortcuts

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