pkg

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2015 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultGitHubOwner = "salsaflow"
	DefaultGitHubRepo  = "salsaflow"
)

Variables

View Source
var ErrAborted = errors.New("aborted by the user")

Functions

func Install

func Install(version string, opts *InstallOptions) error

func Upgrade

func Upgrade(opts *InstallOptions) error

Types

type Config

type Config interface {
	GitHubToken() string
}

func LoadConfig

func LoadConfig() (Config, error)

type GlobalConfig

type GlobalConfig struct {
	GitHub struct {
		Token string `yaml:"token"`
	} `yaml:"github"`
}

type InstallOptions

type InstallOptions struct {
	GitHubOwner string
	GitHubRepo  string
}

Jump to

Keyboard shortcuts

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