pkg

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2016 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultGitHubOwner = "salsaflow"
	DefaultGitHubRepo  = "salsaflow"
)
View Source
const ConfigKey = "salsaflow.core.updater"

Variables

View Source
var (
	ErrAborted            = errors.New("aborted by the user")
	ErrInstallationFailed = errors.New("failed to install SalsaFlow")
)

Functions

func Install

func Install(version string, opts *InstallOptions) error

func Upgrade

func Upgrade(opts *InstallOptions) (upgraded bool, err error)

Types

type GlobalConfig

type GlobalConfig struct {
	GitHubToken string `prompt:"GitHub token to be used for SalsaFlow updater" secret:"true" json:"github_token"`
}

func (*GlobalConfig) PromptUserForConfig added in v0.16.0

func (global *GlobalConfig) PromptUserForConfig() error

type InstallOptions

type InstallOptions struct {
	GitHubOwner     string
	GitHubRepo      string
	TargetDirectory string
}

Jump to

Keyboard shortcuts

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