config

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: ISC Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	GitHub GitHub `yaml:"github"`
}

Config is the model for all configurations.

func FromFile

func FromFile() (Config, error)

FromFile reads the Basil configuration file in user's home directory. If no config file is found, an empty config will be returned.

type GitHub

type GitHub struct {
	AccessToken string `yaml:"access_token"`
}

GitHub has the configurations for GitHub.

Jump to

Keyboard shortcuts

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