config

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save

func Save(cfg *Config) error

Save writes the config to disk.

Types

type Config

type Config struct {
	Server string `yaml:"server"`
	Token  string `yaml:"token"`
}

Config holds the CLI configuration persisted to ~/.config/lunar/config.yaml.

func Load

func Load() (*Config, error)

Load reads the config file, returning defaults on any error.

Jump to

Keyboard shortcuts

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