flag

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IRODSEnvironmentFileEnvKey string = "IRODS_ENVIRONMENT_FILE"
)

Variables

This section is empty.

Functions

func ProcessCommonFlags

func ProcessCommonFlags(command *cobra.Command) (bool, error)

func SetCheckVersionFlags

func SetCheckVersionFlags(command *cobra.Command)

func SetCommonFlags

func SetCommonFlags(command *cobra.Command)

func SetForceFlags

func SetForceFlags(command *cobra.Command, hiddenForce bool)

func SetParallelTransferFlags

func SetParallelTransferFlags(command *cobra.Command, showSingleThread bool)

func SetProgressFlags

func SetProgressFlags(command *cobra.Command)

func SetRetryFlags

func SetRetryFlags(command *cobra.Command)

Types

type CheckVersionFlagValues

type CheckVersionFlagValues struct {
	Check bool
}

func GetCheckVersionFlagValues

func GetCheckVersionFlagValues() *CheckVersionFlagValues

type CommonFlagValues

type CommonFlagValues struct {
	ShowVersion bool
	ShowHelp    bool
	DebugMode   bool

	LogLevel        log.Level
	LogLevelUpdated bool
	Password        string
	PlainTextTicket bool
	// contains filtered or unexported fields
}

func GetCommonFlagValues

func GetCommonFlagValues(command *cobra.Command) *CommonFlagValues

type ForceFlagValues

type ForceFlagValues struct {
	Force bool
}

func GetForceFlagValues

func GetForceFlagValues() *ForceFlagValues

type ParallelTransferFlagValues

type ParallelTransferFlagValues struct {
	SingleTread   bool
	ThreadNumber  int
	TCPBufferSize int
	// contains filtered or unexported fields
}

func GetParallelTransferFlagValues

func GetParallelTransferFlagValues() *ParallelTransferFlagValues

type ProgressFlagValues

type ProgressFlagValues struct {
	NoProgress bool
}

func GetProgressFlagValues

func GetProgressFlagValues() *ProgressFlagValues

type RetryFlagValues

type RetryFlagValues struct {
	RetryNumber          int
	RetryIntervalSeconds int
	RetryChild           bool
}

func GetRetryFlagValues

func GetRetryFlagValues() *RetryFlagValues

Jump to

Keyboard shortcuts

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