Documentation
¶
Overview ¶
Package config provides error constructors for configuration and settings.
Index ¶
- func GoldenNotFound() error
- func InvalidTool(tool string) error
- func MarshalPlugins(cause error) error
- func MarshalSettings(cause error) error
- func ReadEmbeddedSchema(cause error) error
- func ReadProfile(name string, cause error) error
- func SettingsNotFound() error
- func UnknownFormat(format, supported string) error
- func UnknownProfile(name string) error
- func UnknownProjectType(projType, supported string) error
- func UnknownUpdateType(typeName string) error
- func UnsupportedTool(tool string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GoldenNotFound ¶
func GoldenNotFound() error
GoldenNotFound returns an error when settings.golden.json is missing.
Returns:
- error: advises the user to run 'ctx permission snapshot' first
func InvalidTool ¶
InvalidTool returns an error for an unsupported AI tool name.
Parameters:
- tool: the tool name that was not recognized
Returns:
- error: "invalid tool <tool>: must be claude, aider, or generic"
func MarshalPlugins ¶
MarshalPlugins wraps a failure to marshal enabledPlugins JSON.
Parameters:
- cause: the underlying marshal error
Returns:
- error: "failed to marshal enabledPlugins: <cause>"
func MarshalSettings ¶
MarshalSettings wraps a failure to marshal settings JSON.
Parameters:
- cause: the underlying marshal error
Returns:
- error: "failed to marshal settings: <cause>"
func ReadEmbeddedSchema ¶
ReadEmbeddedSchema wraps a failure to read the embedded JSON Schema.
Parameters:
- cause: the underlying read error
Returns:
- error: "read embedded schema: <cause>"
func ReadProfile ¶
ReadProfile wraps a failure to read a profile file.
Parameters:
- name: profile filename
- cause: the underlying read error
Returns:
- error: "read <name>: <cause>"
func SettingsNotFound ¶
func SettingsNotFound() error
SettingsNotFound returns an error when settings.local.json is missing.
Returns:
- error: "no .claude/settings.local.json found"
func UnknownFormat ¶
UnknownFormat returns an error for an unsupported output format.
Parameters:
- format: the format string that was not recognized
- supported: list of valid formats
Returns:
- error: "unknown format <format> (supported: <list>)"
func UnknownProfile ¶
UnknownProfile returns an error for an unrecognized config profile name.
Parameters:
- name: the profile name that was not recognized
Returns:
- error: "unknown profile <name>: must be dev, base, or prod"
func UnknownProjectType ¶
UnknownProjectType returns an error for an unsupported project type.
Parameters:
- projType: the type string that was not recognized
- supported: list of valid types
Returns:
- error: "unknown project type <type> (supported: <list>)"
func UnknownUpdateType ¶
UnknownUpdateType returns an error for an unrecognized context update type.
Parameters:
- typeName: the update type that was not recognized.
Returns:
- error: "unknown update type: <typeName>"
func UnsupportedTool ¶
UnsupportedTool returns an error for an unrecognized AI tool name.
Parameters:
- tool: the tool name that was not recognized
Returns:
- error: "unsupported tool: <tool>"
Types ¶
This section is empty.