watcher

package
v0.52.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package watcher monitors the prompts directory for file changes and normalizes filenames.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watcher

type Watcher interface {
	Watch(ctx context.Context) error
}

Watcher watches the prompts directory and normalizes filenames.

func NewWatcher

func NewWatcher(
	inProgressDir string,
	inboxDir string,
	promptManager prompt.Manager,
	ready chan<- struct{},
	debounce time.Duration,
	currentDateTimeGetter libtime.CurrentDateTimeGetter,
) Watcher

NewWatcher creates a new Watcher with the specified debounce duration.

Jump to

Keyboard shortcuts

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