configs

package
v0.0.10-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetConfigPath = sync.OnceValue(func() string {
	return assert.Exit1(xdg.ConfigFile("fastgit/config.yaml"))
})
View Source
var GetEnvPath = sync.OnceValue(func() string {
	return path.Join(path.Dir(GetConfigPath()), "env.yaml")
})
View Source
var GetLocalEnvPath = sync.OnceValue(func() string {
	return path.Join(GetRepoPath(), ".git", "fastgit.env")
})
View Source
var GetRepoPath = sync.OnceValue(func() string {
	repoPath := assert.Exit1(script.Exec("git rev-parse --show-toplevel").String())
	return strings.TrimSpace(repoPath)
})

Functions

func GetDefaultConfig

func GetDefaultConfig() []byte

func GetEnvConfig

func GetEnvConfig() []byte

Types

type Version

type Version struct {
	Name string `yaml:"name"`
}

Jump to

Keyboard shortcuts

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