type_blobs

package
v0.0.0-...-32d88a2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

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 Default

func Default() (t TomlV1)

func (*TomlV1) GetBinary

func (a *TomlV1) GetBinary() bool

func (*TomlV1) GetFileExtension

func (a *TomlV1) GetFileExtension() string

func (*TomlV1) GetFormatterUTIGroups

func (a *TomlV1) GetFormatterUTIGroups() map[string]UTIGroup

func (*TomlV1) GetFormatters

func (a *TomlV1) GetFormatters() map[string]script_config.WithOutputFormat

func (*TomlV1) GetStringLuaHooks

func (a *TomlV1) GetStringLuaHooks() string

func (*TomlV1) GetVimSyntaxType

func (a *TomlV1) GetVimSyntaxType() string

func (*TomlV1) Reset

func (a *TomlV1) Reset()

type UTIGroup

type UTIGroup map[string]string

func (*UTIGroup) Equals

func (a *UTIGroup) Equals(b UTIGroup) bool

func (UTIGroup) Map

func (a UTIGroup) Map() map[string]string

func (*UTIGroup) Merge

func (ct *UTIGroup) Merge(ct2 UTIGroup)

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) GetBinary

func (a *V0) GetBinary() bool

func (*V0) GetFileExtension

func (a *V0) GetFileExtension() string

func (*V0) GetFormatterUTIGroups

func (a *V0) GetFormatterUTIGroups() map[string]UTIGroup

func (*V0) GetFormatters

func (a *V0) GetFormatters() map[string]script_config.WithOutputFormat

func (*V0) GetStringLuaHooks

func (a *V0) GetStringLuaHooks() string

func (*V0) GetVimSyntaxType

func (a *V0) GetVimSyntaxType() string

func (*V0) Reset

func (a *V0) Reset()

type WithFormatterUTIGropus

type WithFormatterUTIGropus interface {
	GetFormatterUTIGroups() map[string]UTIGroup
}

type WithFormatters

type WithFormatters interface {
	GetFormatters() map[string]script_config.WithOutputFormat
}

type WithStringLuaHooks

type WithStringLuaHooks interface {
	GetStringLuaHooks() string
}

TODO make typed hooks

Jump to

Keyboard shortcuts

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