operationsflags

package
v1.73.1-bclone Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package operationsflags defines the flags used by rclone operations. It is decoupled into a separate package so it can be replaced.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLoggerFlags

func AddLoggerFlags(cmdFlags *pflag.FlagSet, opt *operations.LoggerOpt, flagsOpt *AddLoggerFlagsOptions)

AddLoggerFlags adds the logger flags to the cmdFlags command

func ConfigureLoggers

func ConfigureLoggers(ctx context.Context, fdst fs.Fs, command *cobra.Command, opt *operations.LoggerOpt, flagsOpt AddLoggerFlagsOptions) (func(), error)

ConfigureLoggers verifies and sets up writers for log files requested via CLI flags

func Help

func Help() string

Help returns the help string cleaned up to simplify appending

Types

type AddLoggerFlagsOptions

type AddLoggerFlagsOptions struct {
	Combined     string // a file with file names with leading sigils
	MissingOnSrc string // files only in the destination
	MissingOnDst string // files only in the source
	Match        string // matching files
	Differ       string // differing files
	ErrFile      string // files with errors of some kind
	DestAfter    string // files that exist on the destination post-sync
}

AddLoggerFlagsOptions contains options for the Logger Flags

func (AddLoggerFlagsOptions) AnySet

func (o AddLoggerFlagsOptions) AnySet() bool

AnySet checks if any of the logger flags have a non-blank value

Jump to

Keyboard shortcuts

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