config

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2015 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = &Config{
	MBU:           MBU(time.Minute),
	CommitMessage: " [{{.}}]",
	AutoPush:      true,
}

Functions

This section is empty.

Types

type Config

type Config struct {
	MBU           MBU    `json:"mbu"`
	CommitMessage string `json:"commit_message"`
	AutoPush      bool   `json:"auto_push"`
}

func ReadConfig

func ReadConfig(dir, sysdir string) (*Config, error)

type MBU

type MBU time.Duration

func (MBU) String

func (m MBU) String() string

func (*MBU) UnmarshalJSON

func (t *MBU) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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