Documentation
¶
Index ¶
Constants ¶
View Source
const ( ParameterModeSet = ParameterMode("SET") ParameterModeReplace = ParameterMode("REPLACE") SecretStorageKeyring = SecretStorage("KEYRING") SecretStoragePlainFiles = SecretStorage("PLAIN_FILES") )
View Source
const (
Version = migrations.Latest
)
Variables ¶
View Source
var ErrInvalidConfig = errors.New("invalid config file")
Functions ¶
func SerializeToYamlWithComment ¶ added in v1.0.0
func SerializeToYamlWithComment(value interface{}) []byte
Types ¶
type Config ¶
type Config struct {
Style ui.Config `yaml:"style" mapstructure:"style"`
Editor string `` /* 215-byte string literal not displayed */
DefaultRootCommand string `` /* 196-byte string literal not displayed */
FuzzySearch bool `yaml:"fuzzySearch" mapstructure:"fuzzySearch" head_comment:"Enable fuzzy searching for snippet titles."`
SecretStorage SecretStorage `` /* 193-byte string literal not displayed */
Script ScriptConfig `yaml:"scripts" mapstructure:"scripts" head_comment:"Options regarding script handling"`
Assistant assistant.Config `yaml:"assistant" mapstructure:"assistant" head_comment:"Configure an AI assistant"`
Manager managers.Config `yaml:"manager" mapstructure:"manager"`
}
type ErrConfigNotFound ¶
type ErrConfigNotFound struct {
// contains filtered or unexported fields
}
func (ErrConfigNotFound) Error ¶
func (e ErrConfigNotFound) Error() string
func (ErrConfigNotFound) Is ¶
func (e ErrConfigNotFound) Is(target error) bool
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option configures an App.
func WithSystem ¶
WithSystem sets the system instance for the Service.
type ParameterMode ¶ added in v1.2.0
type ParameterMode string
type ScriptConfig ¶ added in v1.2.0
type ScriptConfig struct {
Shell string `` /* 170-byte string literal not displayed */
ParameterMode ParameterMode `` /* 242-byte string literal not displayed */
RemoveComments bool `` /* 155-byte string literal not displayed */
ExecConfirm bool `` /* 212-byte string literal not displayed */
ExecPrint bool `` /* 172-byte string literal not displayed */
}
type SecretStorage ¶ added in v1.6.0
type SecretStorage string
type Service ¶
type VersionWrapper ¶
type VersionWrapper struct {
Version string `yaml:"version" mapstructure:"version"`
Config Config `yaml:"config" mapstructure:"config"`
}
func Wrap ¶ added in v1.7.0
func Wrap(config Config) VersionWrapper
Wrap wraps a Config into a VersionWrapper with the current version.
Click to show internal directories.
Click to hide internal directories.