intents

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExecutablePrefix = "executable."

	ExecutableName  = ExecutablePrefix + "name"
	ExecutablePath  = ExecutablePrefix + "path"
	ExecutableTitle = ExecutablePrefix + "title"
)

executable

View Source
const (
	RepositoryPrefix = "repository."

	RepositoryName       = RepositoryPrefix + "name"
	RepositoryPath       = RepositoryPrefix + "path"
	RepositoryWorkDir    = RepositoryPrefix + "wkdir"
	RepositoryConfigFile = RepositoryPrefix + "config-file-path"
	RepositoryDotGitPath = RepositoryPrefix + "dot-git-path"
	RepositoryCoreDir    = RepositoryPrefix + "git-core-dir"
)

repository

View Source
const (
	WorktreePrefix     = "worktree."
	WorktreeName       = WorktreePrefix + "name"
	WorktreeDotGitPath = WorktreePrefix + "dot-git-path"
	WorktreeWorkDir    = WorktreePrefix + "wkdir"
)

worktree

View Source
const (
	ProjectPrefix   = "project."
	ProjectName     = ProjectPrefix + "name"
	ProjectFullPath = ProjectPrefix + "fullpath"
)

project

View Source
const (
	FilePrefix = "file."
	FileName   = FilePrefix + "name"
	FilePath   = FilePrefix + "path"
	FileType   = FilePrefix + "type"
)

file

View Source
const (
	FolderPrefix = "folder."
	FolderName   = FolderPrefix + "name"
	FolderPath   = FolderPrefix + "path"
	FolderType   = FolderPrefix + "type"
)

folder

View Source
const (
	SubmodulePrefix  = "submodule."
	SubmoduleName    = SubmodulePrefix + "name"
	SubmoduleWorkDir = SubmodulePrefix + "wkdir"
	SubmoduleDotGit  = SubmodulePrefix + "dotgit"
)

submodule

Variables

This section is empty.

Functions

func ListMacroNames

func ListMacroNames() []string

ListMacroNames ...

Types

type Filter

type Filter interface {
	Handle(c context.Context, i *dto.Intent, next FilterChain) error
}

Filter ...

type FilterChain

type FilterChain interface {
	Handle(c context.Context, i *dto.Intent) error
}

FilterChain ...

type FilterChainBuilder

type FilterChainBuilder struct {
	// contains filtered or unexported fields
}

FilterChainBuilder ...

func (*FilterChainBuilder) AddRegistration

func (inst *FilterChainBuilder) AddRegistration(list ...*FilterRegistration) *FilterChainBuilder

AddRegistration ...

func (*FilterChainBuilder) AddRegistry

func (inst *FilterChainBuilder) AddRegistry(list ...FilterRegistry) *FilterChainBuilder

AddRegistry ...

func (*FilterChainBuilder) Create

func (inst *FilterChainBuilder) Create() FilterChain

Create ...

func (*FilterChainBuilder) Len

func (inst *FilterChainBuilder) Len() int

func (*FilterChainBuilder) Less

func (inst *FilterChainBuilder) Less(i1, i2 int) bool

func (*FilterChainBuilder) Swap

func (inst *FilterChainBuilder) Swap(i1, i2 int)

type FilterManager

type FilterManager interface {
	Chain() FilterChain
}

FilterManager ... [inject:"#wpm-intent-filter-manager"]

type FilterRegistration

type FilterRegistration struct {
	Filter  Filter
	Order   int
	Enabled bool
}

FilterRegistration ...

type FilterRegistry

type FilterRegistry interface {
	GetFilterRegistrationList() []*FilterRegistration
}

FilterRegistry ... [inject:".wpm-intent-filter"]

type MacroResolver

type MacroResolver struct {
	// contains filtered or unexported fields
}

MacroResolver ...

func (*MacroResolver) Error

func (inst *MacroResolver) Error() error

func (*MacroResolver) Init

func (inst *MacroResolver) Init(p map[string]string)

Init ...

func (*MacroResolver) ResolveString

func (inst *MacroResolver) ResolveString(s string) string

ResolveString ...

func (*MacroResolver) ResolveStringArray

func (inst *MacroResolver) ResolveStringArray(src []string) []string

ResolveStringArray ...

func (*MacroResolver) ResolveStringMap

func (inst *MacroResolver) ResolveStringMap(src map[string]string) map[string]string

ResolveStringMap ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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