dfm

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2017 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Version represents the current version of the dfm cli --> Set by build flags
	Version string
	// BuildDate is the date the current version was built --> Set by build flags
	BuildDate string

	// ErrNoHomeEnv is the error that is returned when HOME environment variable is not set
	ErrNoHomeEnv = errors.New("HOME environment variable not set")
	// ErrNoConfigFile is the error that is returned when the configuration file could not be found
	ErrNoConfigFile = errors.New("Could not find a configuration file")

	// Fs is the afero filesystem used when making file system manipulations
	Fs = afero.NewOsFs()
)

Functions

func Execute

func Execute()

Execute kicks of dfm command

Types

type Configuration

type Configuration struct {
	Repo    string
	SrcDir  string
	DestDir string
	Alias   map[string]string
	Tasks   map[string]tasks.Task
	// contains filtered or unexported fields
}

func (*Configuration) Parse added in v0.1.1

func (c *Configuration) Parse(file string) error

func (*Configuration) SetDefaults added in v0.1.1

func (c *Configuration) SetDefaults()

Jump to

Keyboard shortcuts

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