config

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: ISC Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write added in v0.1.3

func Write(config Config) (string, error)

Write writes the Basil configurations into a file in user's home directory. If the config is empty, no config file will be written.

Types

type Config

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

Config is the model for all configurations.

func Read added in v0.1.3

func Read() (Config, error)

Read reads the Basil configurations from a 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