config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// AllBackups if true `list` or `trim` command affect all backups registered
	// in Backups field.
	AllBackups bool

	// Default is the name of a default backup
	Default string

	// Backups contains registered backups. Map's key contains backups' alias,
	// value contains backups' filesystem path.
	Backups map[string]string
}

func New

func New(opts ...Option) Config

type Option

type Option func(*Config)

func OptAllBackups

func OptAllBackups(b bool) Option

func OptBackups

func OptBackups(k, v string) Option

func OptDefault

func OptDefault(s string) Option

Jump to

Keyboard shortcuts

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