config

package
v0.4.11 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrConfigNotFound = errors.New("please make sure you're in a sub-directory of a kartusche")

Functions

func Update added in v0.4.1

func Update(dir string, updateFunc func(*Config) error) error

Types

type Config

type Config struct {
	Name          string            `yaml:"name"`
	DefaultRemote string            `yaml:"default_remote"`
	Remotes       map[string]string `yaml:"remotes"`
}

func Current

func Current() (*Config, error)

func (*Config) GetServerBaseURL

func (c *Config) GetServerBaseURL(remoteName string) (string, error)

func (*Config) Write

func (c *Config) Write(dir string) (err error)

Jump to

Keyboard shortcuts

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