config

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const VersionDev = "<dev>"

Variables

View Source
var Av = struct {
	PullRequest PullRequest
	GitHub      GitHub
}{
	PullRequest: PullRequest{
		OpenBrowser: true,
	},
	GitHub: GitHub{
		BaseUrl: "https://github.com",
	},
}
View Source
var Version = VersionDev

Version is the version of the av application. It is set automatically when creating release builds.

Functions

func FetchLatestVersion

func FetchLatestVersion() (string, error)

func Load

func Load(paths []string) (bool, error)

Load initializes the configuration values. It may optionally be called with a list of additional paths to check for the config file. Returns a boolean indicating whether or not a config file was loaded and an error if one occurred.

Types

type GitHub

type GitHub struct {
	Token   string
	BaseUrl string
}

type PullRequest added in v0.0.3

type PullRequest struct {
	Draft       bool
	OpenBrowser bool
}

Jump to

Keyboard shortcuts

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