config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Authentication
	Email    string `yaml:"email"`
	Password string `yaml:"password"` // Usually left empty, prompt is preferred

	// Storage
	DBPath       string `yaml:"db_path"`
	TokenCache   string `yaml:"token_cache"`
	DisableStore bool   `yaml:"disable_store"`

	// Vehicle selection
	Vehicle int `yaml:"vehicle"` // 0-based index

	// Polling
	PollInterval time.Duration `yaml:"poll_interval"`

	// Output
	Quiet   bool `yaml:"quiet"`
	Verbose bool `yaml:"verbose"`
}

Config holds all configuration options for rivian-ls

func Load

func Load() (*Config, error)

Load loads configuration from multiple sources in priority order: 1. Environment variables 2. Config file (~/.config/rivian-ls/config.yaml) 3. Defaults

Note: CLI flags are applied separately by the caller and take highest precedence

Jump to

Keyboard shortcuts

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