Documentation
¶
Index ¶
- func ApplyRuntimeDefaults(cfg *RuntimeConfig, defaults RuntimeConfig)
- func EnsureRuntimeDirs(cfg RuntimeConfig) error
- func ExpandHome(path string) string
- func LoadTOML(path string, dst any) error
- func WriteTOML(path string, src any, perm os.FileMode) error
- type App
- type Paths
- type RuntimeConfig
- type TokenDiagnostic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyRuntimeDefaults ¶
func ApplyRuntimeDefaults(cfg *RuntimeConfig, defaults RuntimeConfig)
func EnsureRuntimeDirs ¶
func EnsureRuntimeDirs(cfg RuntimeConfig) error
func ExpandHome ¶
Types ¶
type App ¶
type App struct {
Name string
ConfigEnv string
BaseDir string
LegacyBaseDir string
PlatformDirs bool
}
func (App) DefaultPaths ¶
func (App) DefaultRuntimeConfig ¶
func (a App) DefaultRuntimeConfig() (RuntimeConfig, error)
type RuntimeConfig ¶
type TokenDiagnostic ¶
type TokenDiagnostic struct {
Env string `json:"env"`
Present bool `json:"present"`
Source string `json:"source,omitempty"`
}
func TokenDiagnosticForEnv ¶
func TokenDiagnosticForEnv(env string) TokenDiagnostic
Click to show internal directories.
Click to hide internal directories.