api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterFlags

func RegisterFlags(cfg *Config)

RegisterFlags binds CLI flags to the supplied Config.

func Run

func Run(cfg *Config) error

Run wires all dependencies together and starts the application event loop.

Types

type Config

type Config struct {
	Version   string
	Commit    string
	BuildDate string

	OpencodeServerURL string
	BackendProvider   string

	InitConfig   bool
	NoConfig     bool
	ClearHistory bool
	ShowVersion  bool
	ShowDoctor   bool
}

Config holds every runtime tunable. All fields have sensible defaults.

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns a Config populated with built-in defaults.

Jump to

Keyboard shortcuts

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