config

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package config provides error constructors for configuration and settings.

Index

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

func InvalidTool(tool string) error

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

func MarshalPlugins(cause error) error

MarshalPlugins wraps a failure to marshal enabledPlugins JSON.

Parameters:

  • cause: the underlying marshal error

Returns:

  • error: "failed to marshal enabledPlugins: <cause>"

func MarshalSettings

func MarshalSettings(cause error) error

MarshalSettings wraps a failure to marshal settings JSON.

Parameters:

  • cause: the underlying marshal error

Returns:

  • error: "failed to marshal settings: <cause>"

func ReadEmbeddedSchema

func ReadEmbeddedSchema(cause error) error

ReadEmbeddedSchema wraps a failure to read the embedded JSON Schema.

Parameters:

  • cause: the underlying read error

Returns:

  • error: "read embedded schema: <cause>"

func ReadProfile

func ReadProfile(name string, cause error) error

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

func UnknownFormat(format, supported string) error

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

func UnknownProfile(name string) error

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

func UnknownProjectType(projType, supported string) error

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

func UnknownUpdateType(typeName string) error

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

func UnsupportedTool(tool string) error

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.

Jump to

Keyboard shortcuts

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