intents

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: MIT Imports: 4 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 (
	LocationPrefix = "location."
	LocationName   = LocationPrefix + "name"
	LocationPath   = LocationPrefix + "path"
	LocationType   = LocationPrefix + "type"
)

location

Variables

This section is empty.

Functions

func ListMacroNames added in v0.1.0

func ListMacroNames() []string

ListMacroNames ...

Types

type Filter

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

Filter ...

type FilterManager

type FilterManager interface {
	Filter
}

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

type FilterManagerImpl

type FilterManagerImpl struct {
	markup.Component `id:"intent-filter-manager"`

	Filters []FilterRegistry `inject:".intent-filter-registry"`
	// contains filtered or unexported fields
}

FilterManagerImpl ...

func (*FilterManagerImpl) Filter

func (inst *FilterManagerImpl) Filter(c context.Context, intent *dto.Intent) (*dto.Intent, error)

Filter ...

func (*FilterManagerImpl) Len

func (inst *FilterManagerImpl) Len() int

func (*FilterManagerImpl) Less

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

func (*FilterManagerImpl) Swap

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

type FilterRegistration

type FilterRegistration struct {
	Filter  Filter
	Order   int
	Enabled bool
}

FilterRegistration ...

type FilterRegistry

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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