command

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagSources      = "source"
	FlagDestinations = "destination"
	FlagPromotables  = "promotable"
	FlagLogLevel     = "loglevel"
	FlagLogFormat    = "logformat"
	FlagDryRun       = "dry-run"
)

Variables

View Source
var (
	ErrUnequalSourcesDestinationsLength = errors.New("unequal number of sources and destinations")
	ErrUnequalPromotables               = errors.New("unequal number of pomotables")
	ErrNotDir                           = stsync.ErrNotDir
)

Functions

func NewPromoteCommand

func NewPromoteCommand() *cli.Command

Types

type PromoteConfig

type PromoteConfig struct {
	Promotables  []string
	Sources      []string
	Destinations []string
	Sync         SyncFunc
	// contains filtered or unexported fields
}

func (*PromoteConfig) ExecuteContext

func (c *PromoteConfig) ExecuteContext(ctx context.Context) error

func (*PromoteConfig) Promote

func (c *PromoteConfig) Promote(dst, src string) error

func (*PromoteConfig) Validate

func (c *PromoteConfig) Validate() error

type SyncFunc

type SyncFunc func(dst, src string) error

Jump to

Keyboard shortcuts

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