Documentation ¶
Index ¶
- Constants
- type Blob
- type TomlV1
- func (a *TomlV1) GetBinary() bool
- func (a *TomlV1) GetFileExtension() string
- func (a *TomlV1) GetFormatterUTIGroups() map[string]UTIGroup
- func (a *TomlV1) GetFormatters() map[string]script_config.WithOutputFormat
- func (a *TomlV1) GetStringLuaHooks() string
- func (a *TomlV1) GetVimSyntaxType() string
- func (a *TomlV1) Reset()
- type UTIGroup
- type V0
- type WithFormatterUTIGropus
- type WithFormatters
- type WithStringLuaHooks
Constants ¶
View Source
const ( TypeV0 = builtin_types.TypeTypeTomlV0 TypeV1 = builtin_types.TypeTypeTomlV1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blob ¶
type Blob interface { GetFileExtension() string GetBinary() bool GetVimSyntaxType() string WithFormatters WithFormatterUTIGropus WithStringLuaHooks }
type TomlV1 ¶
type TomlV1 struct { Binary bool `toml:"binary,omitempty"` FileExtension string `toml:"file-extension,omitempty"` ExecCommand *script_config.ScriptConfig `toml:"exec-command,omitempty"` VimSyntaxType string `toml:"vim-syntax-type"` UTIGroups map[string]UTIGroup `toml:"uti-groups"` Formatters map[string]script_config.WithOutputFormat `toml:"formatters,omitempty"` Hooks interface{} `toml:"hooks"` }
func (*TomlV1) GetFileExtension ¶
func (*TomlV1) GetFormatterUTIGroups ¶
func (*TomlV1) GetFormatters ¶
func (a *TomlV1) GetFormatters() map[string]script_config.WithOutputFormat
func (*TomlV1) GetStringLuaHooks ¶
func (*TomlV1) GetVimSyntaxType ¶
type V0 ¶
type V0 struct { InlineBlob bool `toml:"inline-akte,omitempty"` Archived bool `toml:"archived,omitempty"` FileExtension string `toml:"file-extension,omitempty"` ExecCommand *script_config.ScriptConfig `toml:"exec-command,omitempty"` VimSyntaxType string `toml:"vim-syntax-type"` // TODO-P4 rename to uti-groups FormatterUTIGroups map[string]UTIGroup `toml:"formatter-uti-groups"` Formatters map[string]script_config.WithOutputFormat `toml:"formatters,omitempty"` Actions map[string]script_config.ScriptConfig `toml:"actions,omitempty"` Hooks interface{} `toml:"hooks"` }
func (*V0) GetFileExtension ¶
func (*V0) GetFormatterUTIGroups ¶
func (*V0) GetFormatters ¶
func (a *V0) GetFormatters() map[string]script_config.WithOutputFormat
func (*V0) GetStringLuaHooks ¶
func (*V0) GetVimSyntaxType ¶
type WithFormatterUTIGropus ¶
type WithFormatters ¶
type WithFormatters interface {
GetFormatters() map[string]script_config.WithOutputFormat
}
type WithStringLuaHooks ¶
type WithStringLuaHooks interface {
GetStringLuaHooks() string
}
TODO make typed hooks
Click to show internal directories.
Click to hide internal directories.