flag

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultRetryNumber          = 3
	DefaultRetryIntervalSeconds = 5
)

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 SetOutputFormatFlags added in v0.3.8

func SetOutputFormatFlags(command *cobra.Command, hideLegacy bool)

func SetParallelTransferFlags

func SetParallelTransferFlags(command *cobra.Command, hideParallelConfig bool, hideSingleThread 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 {
	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
	Timeout         int
	TimeoutUpdated  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 OutputFormatFlagValues added in v0.3.8

type OutputFormatFlagValues struct {
	Format format.OutputFormat
	// contains filtered or unexported fields
}

func GetOutputFormatFlagValues added in v0.3.8

func GetOutputFormatFlagValues() *OutputFormatFlagValues

type ParallelTransferFlagValues

type ParallelTransferFlagValues struct {
	SingleThread        bool
	ThreadNumber        int
	ThreadNumberPerFile int
	TCPBufferSize       int

	Icat        bool
	WebDAV      bool
	StopOnError 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
}

func GetRetryFlagValues

func GetRetryFlagValues() *RetryFlagValues

func (*RetryFlagValues) GetRetryIntervalSeconds added in v0.3.8

func (r *RetryFlagValues) GetRetryIntervalSeconds() time.Duration

func (*RetryFlagValues) GetRetryNumber added in v0.3.8

func (r *RetryFlagValues) GetRetryNumber() int

type SubmissionFlagValues added in v0.1.4

type SubmissionFlagValues struct {
	ExpectedSimulations int
	OrcID               string
	NoID                bool
}

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