config

package
v0.0.51 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindKeyLine added in v0.0.7

func FindKeyLine(filePath string, key string) int

func GlobalUserConfigPath added in v0.0.47

func GlobalUserConfigPath() string

GlobalUserConfigPath returns the path to the global user opencode config file.

func SortedKeys

func SortedKeys(m map[string]interface{}) []string

Types

type Config

type Config struct {
	Path string
	Data Data
}

func Read

func Read(dir string) (*Config, error)

Read reads the opencode config from the given directory (project-local).

func ReadDir added in v0.0.7

func ReadDir(opencodeDir string) (*Config, error)

func (*Config) Write

func (c *Config) Write() error

type Data

type Data = map[string]interface{}

Jump to

Keyboard shortcuts

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