Documentation
¶
Index ¶
- Constants
- type OpenCode
- func (o *OpenCode) ConfigurableParts() []string
- func (o *OpenCode) ExecuteCommand(args ...string) error
- func (o *OpenCode) ForceConfigure() error
- func (o *OpenCode) ForceConfigureParts(parts []string) error
- func (o *OpenCode) ForceInstall() error
- func (o *OpenCode) Install() error
- func (o *OpenCode) Kind() apps.AppKind
- func (o *OpenCode) Name() string
- func (o *OpenCode) SoftConfigure() error
- func (o *OpenCode) SoftInstall() error
- func (o *OpenCode) Uninstall() error
- func (o *OpenCode) Update() error
Constants ¶
const DEFAULT_THEME_NAME = "default"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenCode ¶
type OpenCode struct {
Cmd cmd.Command
Base cmd.BaseCommandExecutor
// contains filtered or unexported fields
}
func (*OpenCode) ConfigurableParts ¶
ConfigurableParts lists the parts --only can refresh: the shared config subtrees plus the rtk integration (installs rtk's OpenCode plugin — the explicit opt-in required by ADR-0004).
func (*OpenCode) ExecuteCommand ¶
func (*OpenCode) ForceConfigure ¶
func (*OpenCode) ForceConfigureParts ¶
ForceConfigureParts refreshes only the named parts. Shared subtrees (skills, commands, agents) are overwritten from the embedded configs; the rtk part runs `rtk init -g --opencode`, which installs rtk's plugin as its own file (plugins/rtk.ts) — devgeta never touches that file, so no opt-in state needs tracking here, unlike claude's settings.json hook. Unlike full ForceConfigure this does not remove or regenerate opencode.json or themes, so a hand-edited config survives. This is the `--force --only=...` path.