flag

package
v0.2.25 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

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, hideForce bool)

func SetParallelTransferFlags

func SetParallelTransferFlags(command *cobra.Command, hideParallelConfig bool, hideSingleThread bool, hideWebDAV bool)

func SetProgressFlags

func SetProgressFlags(command *cobra.Command)

func SetRetryFlags

func SetRetryFlags(command *cobra.Command)

func SetSubmissionFlags added in v0.1.4

func SetSubmissionFlags(command *cobra.Command)

func SetSubmissionListFlags added in v0.1.4

func SetSubmissionListFlags(command *cobra.Command)

func SetTokenFlags added in v0.1.4

func SetTokenFlags(command *cobra.Command)

func SetTransferReportFlags added in v0.2.1

func SetTransferReportFlags(command *cobra.Command)

Types

type CheckVersionFlagValues

type CheckVersionFlagValues struct {
	Silent bool
	Check  bool
}

func GetCheckVersionFlagValues

func GetCheckVersionFlagValues() *CheckVersionFlagValues

type CommonFlagValues

type CommonFlagValues struct {
	ShowVersion bool
	ShowHelp    bool
	DebugMode   bool
	Quiet       bool

	LogLevel        log.Level
	LogLevelUpdated bool
	LogFile         string
	LogTerminal     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 {
	SingleThread        bool
	ThreadNumber        int
	ThreadNumberPerFile int
	TCPBufferSize       int

	RedirectToResource bool
	Icat               bool
	WebDAV             bool
	// contains filtered or unexported fields
}

func GetParallelTransferFlagValues

func GetParallelTransferFlagValues() *ParallelTransferFlagValues

type ProgressFlagValues

type ProgressFlagValues struct {
	NoProgress   bool
	ShowFullPath bool
}

func GetProgressFlagValues

func GetProgressFlagValues() *ProgressFlagValues

type RetryFlagValues

type RetryFlagValues struct {
	RetryNumber          int
	RetryIntervalSeconds int
	RetryChild           bool
}

func GetRetryFlagValues

func GetRetryFlagValues() *RetryFlagValues

type SubmissionFlagValues added in v0.1.4

type SubmissionFlagValues struct {
	ExpectedSimulations int
	OrcID               string
}

func GetSubmissionFlagValues added in v0.1.4

func GetSubmissionFlagValues() *SubmissionFlagValues

type SubmissionListFlagValues added in v0.1.4

type SubmissionListFlagValues struct {
	OrcID string
}

func GetSubmissionListFlagValues added in v0.1.4

func GetSubmissionListFlagValues() *SubmissionListFlagValues

type TokenFlagValues added in v0.1.4

type TokenFlagValues struct {
	Token        string
	TicketString string
	ServiceURL   string
}

func GetTokenFlagValues added in v0.1.4

func GetTokenFlagValues() *TokenFlagValues

type TransferReportFlagValues added in v0.2.1

type TransferReportFlagValues struct {
	ReportPath     string
	Report         bool
	ReportToStdout bool
}

func GetTransferReportFlagValues added in v0.2.1

func GetTransferReportFlagValues(command *cobra.Command) *TransferReportFlagValues

Jump to

Keyboard shortcuts

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