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 ¶
Click to show internal directories.
Click to hide internal directories.