ops

package
v0.5.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: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 []domain.TaskStatus,
		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.

Jump to

Keyboard shortcuts

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