config

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConfigPath = ""
	ConfigName = "kit"
	ConfigType = "yaml"
)

Functions

func GetConfig

func GetConfig() (*viper.Viper, error)

func Init

func Init() (*viper.Viper, error)

func Save

func Save(v *viper.Viper) error

func SaveSettings

func SaveSettings(s *Settings) error

Types

type Settings

type Settings struct {
	APIURL     string
	Token      string
	DefaultOrg string
}

func DefaultSettings

func DefaultSettings() *Settings

func LoadSettings

func LoadSettings() (*Settings, error)

Jump to

Keyboard shortcuts

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