Documentation
¶
Overview ¶
Package config implements the "scut codex config" command group.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownOnlyToken = errors.New("unknown --only token")
ErrUnknownOnlyToken is returned when --only contains a token that is not a known Codex hook slug.
Functions ¶
func PathForScope ¶
PathForScope returns the hooks.json path for a project or user scope.
Types ¶
type Cmd ¶
type Cmd struct {
Install installCmd `cmd:"install" help:"Write/merge scut hook entries into hooks.json."`
Uninstall uninstallCmd `cmd:"uninstall" help:"Remove scut entries from hooks.json."`
Status statusCmd `cmd:"status" help:"Show currently-installed scut entries in hooks.json."`
}
Cmd is the Kong command group for "scut codex config".
type HookEntry ¶
type HookEntry struct {
Type string `json:"type"`
Command string `json:"command"`
CommandWindows string `json:"commandWindows,omitzero"`
Timeout int `json:"timeout,omitzero"`
StatusMessage string `json:"statusMessage,omitzero"`
Foreign map[string]jsontext.Value `json:",inline"`
}
HookEntry is one command hook handler.
type HookGroup ¶
type HookGroup struct {
Matcher string `json:"matcher,omitzero"`
Hooks []HookEntry `json:"hooks"`
Foreign map[string]jsontext.Value `json:",inline"`
}
HookGroup is one matcher group for a Codex hook event.
Click to show internal directories.
Click to hide internal directories.