ops

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompleteOperation

type CompleteOperation interface {
	Execute(ctx context.Context, vaultPath string, taskName string) error
}

func NewCompleteOperation

func NewCompleteOperation(
	storage storage.Storage,
) CompleteOperation

NewCompleteOperation creates a new complete operation.

type DeferOperation

type DeferOperation interface {
	Execute(ctx context.Context, vaultPath string, taskName string, dateStr string) error
}

func NewDeferOperation

func NewDeferOperation(
	storage storage.Storage,
) DeferOperation

NewDeferOperation creates a new defer operation.

type IssueType

type IssueType string

IssueType represents the type of lint issue found.

const (
	IssueTypeMissingFrontmatter IssueType = "MISSING_FRONTMATTER"
	IssueTypeInvalidPriority    IssueType = "INVALID_PRIORITY"
	IssueTypeDuplicateKey       IssueType = "DUPLICATE_KEY"
	IssueTypeInvalidStatus      IssueType = "INVALID_STATUS"
)

type LintIssue

type LintIssue struct {
	FilePath    string
	IssueType   IssueType
	Description string
	Fixable     bool
	Fixed       bool
}

LintIssue represents a single lint issue found in a file.

type LintOperation

type LintOperation interface {
	Execute(ctx context.Context, vaultPath string, tasksDir string, fix bool) error
}

func NewLintOperation

func NewLintOperation() LintOperation

NewLintOperation creates a new lint operation.

type ListOperation

type ListOperation interface {
	Execute(
		ctx context.Context,
		vaultPath string,
		pagesDir string,
		statusFilter string,
		showAll bool,
		assigneeFilter string,
	) error
}

func NewListOperation

func NewListOperation(
	storage storage.Storage,
) ListOperation

NewListOperation creates a new list operation.

type SearchOperation

type SearchOperation interface {
	Execute(ctx context.Context, vaultPath string, scopeDir string, query string, topK int) error
}

func NewSearchOperation

func NewSearchOperation() SearchOperation

NewSearchOperation creates a new search operation.

type UpdateOperation

type UpdateOperation interface {
	Execute(ctx context.Context, vaultPath string, taskName string) error
}

func NewUpdateOperation

func NewUpdateOperation(
	storage storage.Storage,
) UpdateOperation

NewUpdateOperation creates a new update operation.

type WorkOnOperation added in v0.6.0

type WorkOnOperation interface {
	Execute(ctx context.Context, vaultPath string, taskName string, assignee string) error
}

func NewWorkOnOperation added in v0.6.0

func NewWorkOnOperation(
	storage storage.Storage,
) WorkOnOperation

NewWorkOnOperation creates a new work-on operation.

Jump to

Keyboard shortcuts

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