command

package
v0.0.0-...-f9b5ad8 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckHome

func CheckHome() string

CheckHome will evaluate $HOME and see if any config exists in `${HOME}/.backup-genie/config.yaml`

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config is the object we write to `config.yaml`

func (*Config) AddExclude

func (c *Config) AddExclude(exclude []string)

AddExclude for the files we want to ignore

func (*Config) AddInclude

func (c *Config) AddInclude(include []string)

AddInclude for the files we want to include

func (*Config) DryRun

func (c *Config) DryRun()

DryRun will prevent any of the config from actually running (testing purposes)

func (*Config) NewLocation

func (c *Config) NewLocation(location string)

NewLocation will write the location path to config

func (*Config) RunInit

func (c *Config) RunInit() error

RunInit will take care of stuff

type Reader

type Reader interface {
	// contains filtered or unexported methods
}

Reader is a generic interface to read our config file.

Jump to

Keyboard shortcuts

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