config

package
v0.2.22 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigPath

func GetConfigPath() (string, error)

GetConfigPath returns the path to the config file

Types

type Config

type Config struct {
	Repositories []Repository `yaml:"repositories"`
}

Config represents the YAML configuration structure

func Load

func Load() (*Config, error)

Load reads the configuration from a YAML file

func (*Config) Save

func (c *Config) Save() error

Save writes the configuration to a YAML file

type Repository

type Repository struct {
	Name   string `yaml:"name"`
	Path   string `yaml:"path"`
	Remote string `yaml:"remote"`
}

Repository represents the repository configuration

Jump to

Keyboard shortcuts

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