config

package
v0.0.0-...-dd3fbde Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultIDLength = 4
View Source
const DefaultPrefix = "peb"

Variables

View Source
var ErrNoPebblesDir = errors.New("no .pebbles directory found (did you run 'peb init'?)")

Functions

func DefaultConfigContent

func DefaultConfigContent() string

func InstallOpencodePlugin

func InstallOpencodePlugin(cfg *Config) error

func MaybeUpdatePlugin

func MaybeUpdatePlugin(cfg *Config) error

Types

type Config

type Config struct {
	Prefix   string `toml:"prefix"`
	IDLength int    `toml:"id_length"`
	// contains filtered or unexported fields
}

func Load

func Load() (*Config, error)

func (*Config) PebblesDir

func (c *Config) PebblesDir() string

Jump to

Keyboard shortcuts

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