config

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: MIT Imports: 4 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 {
	Auth struct {
		Token string `yaml:"token"`
	} `yaml:"auth"`
	Current      string   `yaml:"current"`
	Repositories []string `yaml:"repositories"`
}

Config represents the application configuration

func Load

func Load(path string) (*Config, error)

Load loads the configuration from file

func (*Config) Save

func (c *Config) Save() error

Save saves the configuration to file

Jump to

Keyboard shortcuts

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