Documentation
¶
Index ¶
- Constants
- type Adapter
- func (a Adapter) Apply(current planner.ClientState, desired planner.ClientState) (planner.Plan, error)
- func (a Adapter) Detect(workspace string) (string, error)
- func (a Adapter) Name() string
- func (a Adapter) Read(path string) (planner.ClientState, error)
- func (a Adapter) Validate(path string) error
- func (a Adapter) Write(path string, desired planner.ClientState) error
Constants ¶
View Source
const ClientName = "codex"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct{}
Adapter implements Codex config translation for ~/.codex/config.toml. It preserves unknown file content and stores managed state in a comment block.
func (Adapter) Apply ¶
func (a Adapter) Apply(current planner.ClientState, desired planner.ClientState) (planner.Plan, error)
Apply computes state diff from current to desired.
func (Adapter) Read ¶
func (a Adapter) Read(path string) (planner.ClientState, error)
Read parses managed block first, then falls back to simple TOML section parsing.
Click to show internal directories.
Click to hide internal directories.